
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 10744 Articles

AmitDiwan
318 Views
To get object at the top of the Stack, the code is as follows −Example Live Demousing System; using System.Collections.Generic; public class Demo { public static void Main() { Stack stack = new Stack(); stack.Push("A"); stack.Push("B"); stack.Push("C"); ... Read More

AmitDiwan
132 Views
To get an IDictionaryEnumerator object in OrderedDictionary, the code is as follows −Example Live Demousing System; using System.Collections; using System.Collections.Specialized; public class Demo { public static void Main() { OrderedDictionary dict = new OrderedDictionary(); dict.Add("1", "One"); dict.Add("2", "Two"); ... Read More

AmitDiwan
110 Views
To check if SortedSet and the specified collection contain the same elements, the code is as follows −Exampleusing System; using System.Collections.Generic; public class Demo { public static void Main() { SortedSet set1 = new SortedSet(); set1.Add(100); set1.Add(200); ... Read More

AmitDiwan
120 Views
To get the values in a SortedList object, the code is as follows −Exampleusing System; using System.Collections; public class Demo { public static void Main(String[] args) { SortedList list = new SortedList(); list.Add(1, "One"); list.Add(2, "Two"); list.Add(3, ... Read More

AmitDiwan
111 Views
To get the value at the specified index of a SortedList object, the code is as follows −Example Live Demousing System; using System.Collections; public class Demo { public static void Main(String[] args) { SortedList list = new SortedList(); list.Add("A", "Jacob"); list.Add("B", ... Read More

AmitDiwan
156 Views
To check if the ArrayList is read-only, the code is as follows −Example Live Demousing System; using System.Collections; public class Demo { public static void Main(String[] args) { ArrayList list1 = new ArrayList(); list1.Add("ABC"); list1.Add("BCD"); list1.Add("CDE"); ... Read More

AmitDiwan
136 Views
To create an empty HybridDictionary with specified case sensitivity, the code is as follows −Example Live Demousing System; using System.Collections; using System.Collections.Specialized; public class Demo { public static void Main() { HybridDictionary myDict = new HybridDictionary(); myDict.Add("A", "AB"); myDict.Add("B", "BC"); ... Read More

AmitDiwan
109 Views
To create an empty case-sensitive HybridDictionary, the code is as follows −Example Live Demousing System; using System.Collections; using System.Collections.Specialized; public class Demo { public static void Main() { HybridDictionary dict = new HybridDictionary(false); dict.Add("A", "AB"); dict.Add("B", "BC"); dict.Add("C", ... Read More

AmitDiwan
155 Views
To create an ArrayList having specified initial capacity, the code is as follows −Example Live Demousing System; using System.Collections; public class Demo { public static void Main(String[] args) { ArrayList list1 = new ArrayList(5); list1.Add("A"); list1.Add("B"); list1.Add("C"); ... Read More

AmitDiwan
134 Views
To create a synchronized wrapper for the Hashtable, the code is as follows −Example Live Demousing System; using System.Collections; public class Demo { public static void Main() { Hashtable hash = new Hashtable(); hash.Add("1", "AB"); hash.Add("2", "CD"); hash.Add("3", ... Read More