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 10740 Articles
AmitDiwan
139 Views
To get the remaining elements of the Tuple, the Rest property is used. The code is as follows −Example Live Demousing System; public class Demo { public static void Main(String[] args){ var tuple1 = Tuple.Create(75, 200, 500, 700, 100, 1200, 1500, 2000); var ... Read More
AmitDiwan
502 Views
To get the first occurrence in the list that matches the specified conditions, the code is as follows −Example Live Demousing System; using System.Collections.Generic; public class Demo { private static bool demo(int i){ return ((i % 10) == 0); } public static void Main(String[] args){ ... Read More
AmitDiwan
308 Views
To find the index of the last element in the array, the code is as follows −Example Live Demousing System; public class Demo { public static void Main(){ string[] products = new string[] { "Andy", "Mark", "Gary", "Andre"}; Console.WriteLine("One or more name begin with ... Read More
AmitDiwan
124 Views
To find the first node in LinkedList containing the specified value, the code is as follows −Example Live Demousing System; using System.Collections.Generic; public class Demo { public static void Main(){ LinkedList list = new LinkedList(); list.AddLast("John"); list.AddLast("Tim"); list.AddLast("Kevin"); ... Read More
AmitDiwan
166 Views
Following is the code that iterates through the BitArray with Enumerator −Example Live Demousing System; using System.Collections; public class Demo { public static void Main(){ BitArray arr1 = new BitArray(5); BitArray arr2 = new BitArray(5); arr1[0] = false; ... Read More
AmitDiwan
129 Views
To create StringBuilder having specified capacity, the code is as follows −Example Live Demousing System; using System.Text; public class Demo { public static void Main(String[] args){ StringBuilder strBuilder1 = new StringBuilder("Tim"); StringBuilder strBuilder2 = new StringBuilder("Tom"); StringBuilder strBuilder3 = new StringBuilder(); ... Read More
AmitDiwan
200 Views
To create a synchronized wrapper for a SortedList object, the code is as follows −Example Live Demousing System; using System.Collections; public class Demo { public static void Main(){ SortedList sortedList = new SortedList(); sortedList.Add("1", "Tom"); sortedList.Add("2", "Ryan"); sortedList.Add("3", ... Read More
AmitDiwan
133 Views
To count the number of key/value pairs in 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 dict1 = new HybridDictionary(); dict1.Add("A", "SUV"); dict1.Add("B", "MUV"); ... Read More
AmitDiwan
269 Views
To copy the SortedList elements to an Array 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("1", "AB"); list.Add("2", "CD"); ... Read More
AmitDiwan
154 Views
To copy the HybridDictionary entries to an Array Instance, 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(); dict.Add("1", "SUV"); dict.Add("2", "AUV"); ... Read More