13 of 13
Previous
Next |
Concatenate Elements in a String Array in .NET
by Srinath M S
Language: .NET, Expertise: Intermediate - Use the String.Join method to concatenate elements of a string array.
|
Validating Dynamic Arrays
by Oracy
Language: Visual Basic 6||Expertise: Advanced
|
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.
|
Using System.arraycopy(.....)
by MS Sridhar
Learn how to use System.arraycopy(.....) to copy the contents of an arrary for processing.
|
Making Complex Arrays
by Sunil Kidambi
Learn how to make a vector of a list of associations.
|
13 of 13
Previous
Next |