RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

Search the Tips


17 of 17     Previous     Next
Pick the First Few Elements in an Array in C#
by Srinath M S
Language: .NET, Expertise: Intermediate - Explore how to use a simple statement to pick the first few elements of an array in C#.
Understanding CopyOnWriteArrayList
by M S Sridhar
Language: Java, Expertise: Intermediate - See why using CopyOnWriteArrayList in Java is worth it, despite the performance hit.
Understanding the ArrayStoreException in Java
by M S Sridhar
Language: Java, Expertise: Intermediate - Learn more about how to avoid getting the ArrayStoreException in Java.
Java Collections Performance, MAP
by Octavia Anghel
Language: Java, Expertise: Intermediate - Improve Java performance with MAP.
Java Collections Performance, LISTS
by Octavia Anghel
Language: Java, Expertise: Intermediate - A list is an ordered collection of elements.
Using LINQ Concat to Loop Over Two Arrays with Same Type of Elements
by Srinath M S
Language: .NET, Expertise: Beginner - Learn to use the Concat operator in LINQ to loop thru collections in one go.
Comparison of Arrays
by M S Sridhar
Language: Java, Expertise: Intermediate - Easy code for comparing arrays in Java.
Increasing the Size of an Array
by M S Sridhar
Language: Java, Expertise: Intermediate - Learn how to increase the size of an array.
Use Enumeration Instead of SAFEARRAY to Get an Array's Elements
by Shao Voon
C++'s SAFEARRAY is difficult to use. A better option is to enumerate an array's elements by repeatedly calling your own custom enumeration function and incrementing the element index.
Use Array Predicates to Simplify Searches
by Srinath MS
Predicates can often eliminate the need to write loops and iterations over arrays.
Using String.split(String) vs. Using a StringTokenizer
by Hrudananda Pattanaik
It's not always safe to use String.split(String). Consider using the String Tokenizer API instead.
Returning Zero-Length Arrays in Java
by Nagaraj Ramesh
Define a static final zero-length array and return that rather than null from methods that return array types.
Convert Hashtable Keys or Values into an ArrayList
by Deepak Choudhari
The key is to use the ArrayList constructor that takes an ICollection.
Be Careful of Negative Array Indices
by Akash Aggarwal
Negative array indices can cause unexpected behavior when porting an application from 32 to 64 bits.
Trimming Items in a String Array
by Arsalan Tamiz
When you use a For Each loop to iterate through a String Array and perform some action with each item, the change doesn't affect the String Array itself.
Create XML from an Array
by Cindy Rodriguez
Passing arrays as arguments to stored procedures is not currently possible in SQL Server, but you can use XML to accomplish this.
Create Two-Dimensional Arrays in the Heap
by Arman Sahakyan
This code demonstrates how to create two-dimensional arrays in the heap.
17 of 17     Previous     Next
Close Icon
Thanks for your registration, follow us on our social networks to keep up-to-date