Published by Zaheer
Sorting an array in Javascript is a snap.
You create an array and then call sort() method on that array. The Javascript sort() method sorts an array in lexicographical order. This method is very useful in sorting alphanumeric values of an array.
However, sort() will not work if the array consists of numeric values. Because [...]
. Dec 05, 2007
Filed under: Javascript
Tags: Array, Javascript, numeric array, Sort, Sort numbers, sort numeric arrays
Published by Zaheer
Vector class in java.util package is very easy to use. You can add objects of any type in a vector.
You don’t have to worry about declaring the size of the vector. You can just keep adding elements to your object and the vector will dynamically adjust the size. The vector will add elements one [...]
. Nov 02, 2007
Filed under: Java
Tags: Java, Sort, Sorted Vector, Vector