java.util
Class Arrays

public class Arrays
Arrays contains static methods which operate on arrays.
Since1.2
VersionNot specified.
AuthorNot specified.
Wiki javadoc Use textile entry format.
Add your comments here.
Method Summary
static List<T> asList( T ... [] array )
Answers a List on the objects in the specified array.
static int binarySearch( long [] array, long value )
Performs a binary search for the specified element in the specified sorted array.
static int binarySearch( Object [] array, Object object )
Performs a binary search for the specified element in the specified sorted array.
static int binarySearch( T [] array, T object, Comparator<? super T> comparator )
Performs a binary search for the specified element in the specified sorted array using the Comparator to compare elements.
static int binarySearch( short [] array, short value )
Performs a binary search for the specified element in the specified sorted array.
static int binarySearch( double [] array, double value )
Performs a binary search for the specified element in the specified sorted array.
static int binarySearch( byte [] array, byte value )
Performs a binary search for the specified element in the specified sorted array.
static int binarySearch( char [] array, char value )
Performs a binary search for the specified element in the specified sorted array.
static int binarySearch( int [] array, int value )
Performs a binary search for the specified element in the specified sorted array.
static int binarySearch( float [] array, float value )
Performs a binary search for the specified element in the specified sorted array.
static boolean deepEquals( Object [] array1, Object [] array2 )
Returns the 'deep' equals for the two given arrays.
static int deepHashCode( Object [] array )
Returns the 'deep' hash code for the given array.
static String deepToString( Object [] array )

Creates a "deep" String representation of the Object[] passed, such that if the array contains other arrays, the String representation of those arrays is generated as well.

static boolean equals( boolean [] array1, boolean [] array2 )
Compares the two arrays.
static boolean equals( Object [] array1, Object [] array2 )
Compares the two arrays.
static boolean equals( double [] array1, double [] array2 )
Compares the two arrays.
static boolean equals( long [] array1, long [] array2 )
Compares the two arrays.
static boolean equals( float [] array1, float [] array2 )
Compares the two arrays.
static boolean equals( short [] array1, short [] array2 )
Compares the two arrays.
static boolean equals( char [] array1, char [] array2 )
Compares the two arrays.
static boolean equals( int [] array1, int [] array2 )
Compares the two arrays.
static boolean equals( byte [] array1, byte [] array2 )
Compares the two arrays.
static void fill( Object [] array, int start, int end, Object value )
Fills the section of the array between the given indices with the given value.
static void fill( boolean [] array, boolean value )
Fills the array with the given value.
static void fill( boolean [] array, int start, int end, boolean value )
Fills the section of the array between the given indices with the given value.
static void fill( Object [] array, Object value )
Fills the array with the given value.
static void fill( byte [] array, byte value )
Fills the array with the given value.
static void fill( byte [] array, int start, int end, byte value )
Fills the section of the array between the given indices with the given value.
static void fill( short [] array, short value )
Fills the array with the given value.
static void fill( short [] array, int start, int end, short value )
Fills the section of the array between the given indices with the given value.
static void fill( char [] array, char value )
Fills the array with the given value.
static void fill( char [] array, int start, int end, char value )
Fills the section of the array between the given indices with the given value.
static void fill( int [] array, int value )
Fills the array with the given value.
static void fill( int [] array, int start, int end, int value )
Fills the section of the array between the given indices with the given value.
static void fill( long [] array, long value )
Fills the array with the given value.
static void fill( long [] array, int start, int end, long value )
Fills the section of the array between the given indices with the given value.
static void fill( float [] array, float value )
Fills the array with the given value.
static void fill( float [] array, int start, int end, float value )
Fills the section of the array between the given indices with the given value.
static void fill( double [] array, double value )
Fills the array with the given value.
static void fill( double [] array, int start, int end, double value )
Fills the section of the array between the given indices with the given value.
static int hashCode( Object [] array )
Returns the hash code for the given array.
static int hashCode( byte [] array )
Returns the hash code for the given array.
static int hashCode( long [] array )
Returns the hash code for the given array.
static int hashCode( double [] array )
Returns the hash code for the given array.
static int hashCode( float [] array )
Returns the hash code for the given array.
static int hashCode( char [] array )
Returns the hash code for the given array.
static int hashCode( int [] array )
Returns the hash code for the given array.
static int hashCode( short [] array )
Returns the hash code for the given array.
static int hashCode( boolean [] array )
Returns the hash code for the given array.
static void sort( long [] array )
Performs a sort on given array.
static void sort( long [] array, int start, int end )
Performs a sort on the section of the array between the given indices.
static void sort( Object [] array )
Performs a sort on the given array.
static void sort( Object [] array, int start, int end )
Performs a sort on the section of the array between the given indices.
static void sort( T [] array, int start, int end, Comparator<? super T> comparator )
Performs a sort on the section of the array between the given indices.
static void sort( T [] array, Comparator<? super T> comparator )
Performs a sort on the given array.
static void sort( short [] array )
Performs a sort on the given array.
static void sort( short [] array, int start, int end )
Performs a sort on the given array.
static void sort( int [] array )
Performs a sort on the given array.
static void sort( int [] array, int start, int end )
Performs a sort on the section of the array between the given indices.
static void sort( double [] array )
Performs a sort on the given array.
static void sort( double [] array, int start, int end )
Performs a sort on the section of the array between the given indices.
static void sort( float [] array )
Performs a sort on the given array.
static void sort( float [] array, int start, int end )
Performs a sort on the section of the array between the given indices.
static void sort( char [] array )
Performs a sort on the given array.
static void sort( char [] array, int start, int end )
Performs a sort on the section of the array between the given indices.
static void sort( byte [] array )
Performs a sort on the given array.
static void sort( byte [] array, int start, int end )
Performs a sort on the section of the array between the given indices.
static String toString( Object [] array )

Creates a String representation of the Object[] passed.

static String toString( short [] array )
Creates a String representation of the short[] passed.
static String toString( int [] array )

Creates a String representation of the int[] passed.

static String toString( long [] array )

Creates a String representation of the long[] passed.

static String toString( char [] array )

Creates a String representation of the char[] passed.

static String toString( boolean [] array )

Creates a String representation of the boolean[] passed.

static String toString( float [] array )

Creates a String representation of the float[] passed.

static String toString( double [] array )

Creates a String representation of the double[] passed.

static String toString( byte [] array )
Creates a String representation of the byte[] passed.
asList
public static <T> List<T> asList ( T ... [] array )
Answers a List on the objects in the specified array. The size of the List cannot be modified, i.e. adding and removing are unsupported, but the elements can be set. Setting an element modifies the underlying array.
Parameters
TypeNameDescription
T ...[] array the array
Wiki javadoc Use textile entry format.
Add your comments here.
binarySearch
public static int binarySearch ( long [] array, long value )
Performs a binary search for the specified element in the specified sorted array.
Parameters
TypeNameDescription
long[] array the sorted long array to search
long value the long element to find
Wiki javadoc Use textile entry format.
Add your comments here.
binarySearch
public static int binarySearch ( Object [] array, Object object )
Performs a binary search for the specified element in the specified sorted array.
Parameters
TypeNameDescription
Object [] array the sorted Object array to search
Object object the Object element to find
Wiki javadoc Use textile entry format.
Add your comments here.
binarySearch
public static <T> int binarySearch ( T [] array, T object, Comparator<? super T> comparator )
Performs a binary search for the specified element in the specified sorted array using the Comparator to compare elements.
Parameters
TypeNameDescription
T[] array the sorted char array to search
T object the char element to find
Comparator<? super T> comparator the Comparator
Wiki javadoc Use textile entry format.
Add your comments here.
binarySearch
public static int binarySearch ( short [] array, short value )
Performs a binary search for the specified element in the specified sorted array.
Parameters
TypeNameDescription
short[] array the sorted short array to search
short value the short element to find
Wiki javadoc Use textile entry format.
Add your comments here.
binarySearch
public static int binarySearch ( double [] array, double value )
Performs a binary search for the specified element in the specified sorted array.
Parameters
TypeNameDescription
double[] array the sorted double array to search
double value the double element to find
Wiki javadoc Use textile entry format.
Add your comments here.
binarySearch
public static int binarySearch ( byte [] array, byte value )
Performs a binary search for the specified element in the specified sorted array.
Parameters
TypeNameDescription
byte[] array the sorted byte array to search
byte value the byte element to find
Wiki javadoc Use textile entry format.
Add your comments here.
binarySearch
public static int binarySearch ( char [] array, char value )
Performs a binary search for the specified element in the specified sorted array.
Parameters
TypeNameDescription
char[] array the sorted char array to search
char value the char element to find
Wiki javadoc Use textile entry format.
Add your comments here.
binarySearch
public static int binarySearch ( int [] array, int value )
Performs a binary search for the specified element in the specified sorted array.
Parameters
TypeNameDescription
int[] array the sorted int array to search
int value the int element to find
Wiki javadoc Use textile entry format.
Add your comments here.
binarySearch
public static int binarySearch ( float [] array, float value )
Performs a binary search for the specified element in the specified sorted array.
Parameters
TypeNameDescription
float[] array the sorted float array to search
float value the float element to find
Wiki javadoc Use textile entry format.
Add your comments here.
deepEquals
public static boolean deepEquals ( Object [] array1, Object [] array2 )
Returns the 'deep' equals for the two given arrays. This means that if either of the arrays contains other arrays then their contents are also checked for (deep) equality. If two corresponding elements are arrays of a primitive type then the appropriate Arrays.equals method is used to determine their equality. Otherwise for two Object arrays deepEquals is called recursively. This method should not be used if either of the arrays, or any arrays contained within it are likely to contain a reference to itself.
Parameters
TypeNameDescription
Object [] array1 the first Object array
Object [] array2 the second Object array
Wiki javadoc Use textile entry format.
Add your comments here.
deepHashCode
public static int deepHashCode ( Object [] array )
Returns the 'deep' hash code for the given array. This means that if this array contains other arrays their contents will also be included in the hash and so on recursively. This method should not be used if the array or any arrays contained within it are likely to contain a reference to itself. If Arrays.deepEquals(...) returns true for two arrays then their deep hash codes will also be equal. If the array is null the return value will be 0.
Parameters
TypeNameDescription
Object [] array the array to return the hash code for
Wiki javadoc Use textile entry format.
Add your comments here.
deepToString
public static String deepToString ( Object [] array )

Creates a "deep" String representation of the Object[] passed, such that if the array contains other arrays, the String representation of those arrays is generated as well.

If any of the elements are primitive arrays, the generation is delegated to the other toString methods in this class. If any element contains a reference to the original array, then it will be represented as "[...]". If an element is an Object[], then its representation is generated by a recursive call to this method. All other elements are converted via the valueOf(Object) method.

Since: 1.5
Parameters
TypeNameDescription
Object [] array The Object array to convert.
Wiki javadoc Use textile entry format.
Add your comments here.
equals
public static boolean equals ( boolean [] array1, boolean [] array2 )
Compares the two arrays.
Parameters
TypeNameDescription
boolean[] array1 the first boolean array
boolean[] array2 the second boolean array
Wiki javadoc Use textile entry format.
Add your comments here.
equals
public static boolean equals ( Object [] array1, Object [] array2 )
Compares the two arrays.
Parameters
TypeNameDescription
Object [] array1 the first Object array
Object [] array2 the second Object array
Wiki javadoc Use textile entry format.
Add your comments here.
equals
public static boolean equals ( double [] array1, double [] array2 )
Compares the two arrays. The values are compared in the same manner as Double.equals().
Parameters
TypeNameDescription
double[] array1 the first double array
double[] array2 the second double array
See also
Wiki javadoc Use textile entry format.
Add your comments here.
equals
public static boolean equals ( long [] array1, long [] array2 )
Compares the two arrays.
Parameters
TypeNameDescription
long[] array1 the first long array
long[] array2 the second long array
Wiki javadoc Use textile entry format.
Add your comments here.
equals
public static boolean equals ( float [] array1, float [] array2 )
Compares the two arrays. The values are compared in the same manner as Float.equals().
Parameters
TypeNameDescription
float[] array1 the first float array
float[] array2 the second float array
See also
Wiki javadoc Use textile entry format.
Add your comments here.
equals
public static boolean equals ( short [] array1, short [] array2 )
Compares the two arrays.
Parameters
TypeNameDescription
short[] array1 the first short array
short[] array2 the second short array
Wiki javadoc Use textile entry format.
Add your comments here.
equals
public static boolean equals ( char [] array1, char [] array2 )
Compares the two arrays.
Parameters
TypeNameDescription
char[] array1 the first char array
char[] array2 the second char array
Wiki javadoc Use textile entry format.
Add your comments here.
equals
public static boolean equals ( int [] array1, int [] array2 )
Compares the two arrays.
Parameters
TypeNameDescription
int[] array1 the first int array
int[] array2 the second int array
Wiki javadoc Use textile entry format.
Add your comments here.
equals
public static boolean equals ( byte [] array1, byte [] array2 )
Compares the two arrays.
Parameters
TypeNameDescription
byte[] array1 the first byte array
byte[] array2 the second byte array
Wiki javadoc Use textile entry format.
Add your comments here.
fill
public static void fill ( Object [] array, int start, int end, Object value )
Fills the section of the array between the given indices with the given value.
Parameters
TypeNameDescription
Object [] array the Object array to fill
int start the start index
int end the end index + 1
Object value the Object element
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
fill
public static void fill ( boolean [] array, boolean value )
Fills the array with the given value.
Parameters
TypeNameDescription
boolean[] array the boolean array to fill
boolean value the boolean element
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
fill
public static void fill ( boolean [] array, int start, int end, boolean value )
Fills the section of the array between the given indices with the given value.
Parameters
TypeNameDescription
boolean[] array the boolean array to fill
int start the start index
int end the end index + 1
boolean value the boolean element
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
fill
public static void fill ( Object [] array, Object value )
Fills the array with the given value.
Parameters
TypeNameDescription
Object [] array the Object array to fill
Object value the Object element
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
fill
public static void fill ( byte [] array, byte value )
Fills the array with the given value.
Parameters
TypeNameDescription
byte[] array the byte array to fill
byte value the byte element
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
fill
public static void fill ( byte [] array, int start, int end, byte value )
Fills the section of the array between the given indices with the given value.
Parameters
TypeNameDescription
byte[] array the byte array to fill
int start the start index
int end the end index + 1
byte value the byte element
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
fill
public static void fill ( short [] array, short value )
Fills the array with the given value.
Parameters
TypeNameDescription
short[] array the short array to fill
short value the short element
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
fill
public static void fill ( short [] array, int start, int end, short value )
Fills the section of the array between the given indices with the given value.
Parameters
TypeNameDescription
short[] array the short array to fill
int start the start index
int end the end index + 1
short value the short element
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
fill
public static void fill ( char [] array, char value )
Fills the array with the given value.
Parameters
TypeNameDescription
char[] array the char array to fill
char value the char element
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
fill
public static void fill ( char [] array, int start, int end, char value )
Fills the section of the array between the given indices with the given value.
Parameters
TypeNameDescription
char[] array the char array to fill
int start the start index
int end the end index + 1
char value the char element
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
fill
public static void fill ( int [] array, int value )
Fills the array with the given value.
Parameters
TypeNameDescription
int[] array the int array to fill
int value the int element
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
fill
public static void fill ( int [] array, int start, int end, int value )
Fills the section of the array between the given indices with the given value.
Parameters
TypeNameDescription
int[] array the int array to fill
int start the start index
int end the end index + 1
int value the int element
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
fill
public static void fill ( long [] array, long value )
Fills the array with the given value.
Parameters
TypeNameDescription
long[] array the long array to fill
long value the long element
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
fill
public static void fill ( long [] array, int start, int end, long value )
Fills the section of the array between the given indices with the given value.
Parameters
TypeNameDescription
long[] array the long array to fill
int start the start index
int end the end index + 1
long value the long element
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
fill
public static void fill ( float [] array, float value )
Fills the array with the given value.
Parameters
TypeNameDescription
float[] array the float array to fill
float value the float element
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
fill
public static void fill ( float [] array, int start, int end, float value )
Fills the section of the array between the given indices with the given value.
Parameters
TypeNameDescription
float[] array the float array to fill
int start the start index
int end the end index + 1
float value the float element
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
fill
public static void fill ( double [] array, double value )
Fills the array with the given value.
Parameters
TypeNameDescription
double[] array the float array to fill
double value the float element
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
fill
public static void fill ( double [] array, int start, int end, double value )
Fills the section of the array between the given indices with the given value.
Parameters
TypeNameDescription
double[] array the double array to fill
int start the start index
int end the end index + 1
double value the double element
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
hashCode
public static int hashCode ( Object [] array )
Returns the hash code for the given array. If this array contains other arrays, their contents will not be recursively searched so this method should be used if the array is likely to contain a reference to itself. If Arrays.equals(...) returns true for two arrays then their hash codes will also be equal. The value returned by this method is the same value as the method Arrays.asList(array).hashCode(). If the array is null, the return value will be 0.
Parameters
TypeNameDescription
Object [] array the array to return the hash code for
Wiki javadoc Use textile entry format.
Add your comments here.
hashCode
public static int hashCode ( byte [] array )
Returns the hash code for the given array. If Arrays.equals(...) returns true for two arrays then their hash codes will also be equal. The value returned by this method is the same value as the hashCode() } method which is invoked on a List } containing a sequence of Byte } instances representing the elements of array in the same order. If the array is null the return value will be 0.
Parameters
TypeNameDescription
byte[] array the array to return the hash code for
Wiki javadoc Use textile entry format.
Add your comments here.
hashCode
public static int hashCode ( long [] array )
Returns the hash code for the given array. If Arrays.equals(...) returns true for two arrays then their hash codes will also be equal. The value returned by this method is the same value as the hashCode() } method which is invoked on a List } containing a sequence of Long } instances representing the elements of array in the same order. If the array is null the return value will be 0.
Parameters
TypeNameDescription
long[] array the array to return the hash code for
Wiki javadoc Use textile entry format.
Add your comments here.
hashCode
public static int hashCode ( double [] array )
Returns the hash code for the given array. If Arrays.equals(...) returns true for two arrays then their hash codes will also be equal. The value returned by this method is the same value as the hashCode() } method which is invoked on a List } containing a sequence of Double } instances representing the elements of array in the same order. If the array is null, the return value will be 0.
Parameters
TypeNameDescription
double[] array the array to return the hash code for
Wiki javadoc Use textile entry format.
Add your comments here.
hashCode
public static int hashCode ( float [] array )
Returns the hash code for the given array. If Arrays.equals(...) returns true for two arrays then their hash codes will also be equal. The value returned by this method is the same value as the hashCode() } method which is invoked on a List } containing a sequence of Float } instances representing the elements of array in the same order. If the array is null the return value will be 0.
Parameters
TypeNameDescription
float[] array the array to return the hash code for
Wiki javadoc Use textile entry format.
Add your comments here.
hashCode
public static int hashCode ( char [] array )
Returns the hash code for the given array. If Arrays.equals(...) returns true for two arrays then their hash codes will also be equal. The value returned by this method is the same value as the hashCode() } method which is invoked on a List } containing a sequence of Character } instances representing the elements of array in the same order. If the array is null the return value will be 0.
Parameters
TypeNameDescription
char[] array the array to return the hash code for
Wiki javadoc Use textile entry format.
Add your comments here.
hashCode
public static int hashCode ( int [] array )
Returns the hash code for the given array. If Arrays.equals(...) returns true for two arrays then their hash codes will also be equal. The value returned by this method is the same value as the hashCode() } method which is invoked on a List } containing a sequence of Integer } instances representing the elements of array in the same order. If the array is null the return value will be 0.
Parameters
TypeNameDescription
int[] array the array to return the hash code for
Wiki javadoc Use textile entry format.
Add your comments here.
hashCode
public static int hashCode ( short [] array )
Returns the hash code for the given array. If Arrays.equals(...) returns true for two arrays then their hash codes will also be equal. The value returned by this method is the same value as the hashCode() } method which is invoked on a List } containing a sequence of Short } instances representing the elements of array in the same order. If the array is null the return value will be 0.
Parameters
TypeNameDescription
short[] array the array to return the hash code for
Wiki javadoc Use textile entry format.
Add your comments here.
hashCode
public static int hashCode ( boolean [] array )
Returns the hash code for the given array. If Arrays.equals(...) returns true for two arrays then their hash codes will also be equal. The value returned by this method is the same value as the hashCode() } method which is invoked on a List } containing a sequence of Boolean } instances representing the elements of array in the same order. If the array is null the return value will be 0.
Parameters
TypeNameDescription
boolean[] array the array to return the hash code for
Wiki javadoc Use textile entry format.
Add your comments here.
sort
public static void sort ( long [] array )
Performs a sort on given array. Elements will be re-ordered into ascending order.
Parameters
TypeNameDescription
long[] array the long array to sort
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
sort
public static void sort ( long [] array, int start, int end )
Performs a sort on the section of the array between the given indices. Elements will be re-ordered into ascending order.
Parameters
TypeNameDescription
long[] array the long array to sort
int start the start index
int end the end index + 1
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
sort
public static void sort ( Object [] array )
Performs a sort on the given array. Elements will be re-ordered into ascending order.
Parameters
TypeNameDescription
Object [] array the Object array to sort
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
sort
public static void sort ( Object [] array, int start, int end )
Performs a sort on the section of the array between the given indices. Elements will be re-ordered into ascending order.
Parameters
TypeNameDescription
Object [] array the Object array to sort
int start the start index
int end the end index + 1
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
sort
public static <T> void sort ( T [] array, int start, int end, Comparator<? super T> comparator )
Performs a sort on the section of the array between the given indices. Elements will be re-ordered into ascending order according to the given Comparator.
Parameters
TypeNameDescription
T[] array the Object array to sort
int start the start index
int end the end index + 1
Comparator<? super T> comparator the Comparator
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
sort
public static <T> void sort ( T [] array, Comparator<? super T> comparator )
Performs a sort on the given array. Elements will be re-ordered into ascending order according to the given Comparator.
Parameters
TypeNameDescription
T[] array the Object array to sort
Comparator<? super T> comparator the Comparator
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
sort
public static void sort ( short [] array )
Performs a sort on the given array. Elements will be re-ordered into ascending order.
Parameters
TypeNameDescription
short[] array the short array to sort
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
sort
public static void sort ( short [] array, int start, int end )
Performs a sort on the given array. Elements will be re-ordered into ascending order.
Parameters
TypeNameDescription
short[] array the short array to sort
int start the start index
int end the end index + 1
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
sort
public static void sort ( int [] array )
Performs a sort on the given array. Elements will be re-ordered into ascending order.
Parameters
TypeNameDescription
int[] array the int array to sort
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
sort
public static void sort ( int [] array, int start, int end )
Performs a sort on the section of the array between the given indices. Elements will be re-ordered into ascending order.
Parameters
TypeNameDescription
int[] array the int array to sort
int start the start index
int end the end index + 1
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
sort
public static void sort ( double [] array )
Performs a sort on the given array. Elements will be re-ordered into ascending order.
Parameters
TypeNameDescription
double[] array the double array to sort
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
sort
public static void sort ( double [] array, int start, int end )
Performs a sort on the section of the array between the given indices. Elements will be re-ordered into ascending order.
Parameters
TypeNameDescription
double[] array the double array to sort
int start the start index
int end the end index + 1
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
sort
public static void sort ( float [] array )
Performs a sort on the given array. Elements will be re-ordered into ascending order.
Parameters
TypeNameDescription
float[] array the float array to sort
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
sort
public static void sort ( float [] array, int start, int end )
Performs a sort on the section of the array between the given indices. Elements will be re-ordered into ascending order.
Parameters
TypeNameDescription
float[] array the float array to sort
int start the start index
int end the end index + 1
Returns void No description provided.
See also
Wiki javadoc Use textile entry format.
Add your comments here.
sort
public static void sort ( char [] array )
Performs a sort on the given array. Elements will be re-ordered into ascending order.
Parameters
TypeNameDescription
char[] array the char array to sort
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
sort
public static void sort ( char [] array, int start, int end )
Performs a sort on the section of the array between the given indices. Elements will be re-ordered into ascending order.
Parameters
TypeNameDescription
char[] array the char array to sort
int start the start index
int end the end index + 1
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
sort
public static void sort ( byte [] array )
Performs a sort on the given array. Elements will be re-ordered into ascending order.
Parameters
TypeNameDescription
byte[] array the byte array to sort
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
sort
public static void sort ( byte [] array, int start, int end )
Performs a sort on the section of the array between the given indices. Elements will be re-ordered into ascending order.
Parameters
TypeNameDescription
byte[] array the byte array to sort
int start the start index
int end the end index + 1
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
toString
public static String toString ( Object [] array )

Creates a String representation of the Object[] passed. The result is surrounded by brackets ("[]"), each element is converted to a String via the valueOf(Object) and separated by ", ". If the array is null, then "null" is returned.

Since: 1.5
Parameters
TypeNameDescription
Object [] array The Object array to convert.
Wiki javadoc Use textile entry format.
Add your comments here.
toString
public static String toString ( short [] array )
Creates a String representation of the short[] passed. The result is surrounded by brackets ("[]"), each element is converted to a String via the valueOf(int) and separated by ", ". If the array is null, then "null" is returned.
Since: 1.5
Parameters
TypeNameDescription
short[] array The short array to convert.
Wiki javadoc Use textile entry format.
Add your comments here.
toString
public static String toString ( int [] array )

Creates a String representation of the int[] passed. The result is surrounded by brackets ("[]"), each element is converted to a String via the valueOf(int) and separated by ", ". If the array is null, then "null" is returned.

Since: 1.5
Parameters
TypeNameDescription
int[] array The int array to convert.
Wiki javadoc Use textile entry format.
Add your comments here.
toString
public static String toString ( long [] array )

Creates a String representation of the long[] passed. The result is surrounded by brackets ("[]"), each element is converted to a String via the valueOf(long) and separated by ", ". If the array is null, then "null" is returned.

Since: 1.5
Parameters
TypeNameDescription
long[] array The long array to convert.
Wiki javadoc Use textile entry format.
Add your comments here.
toString
public static String toString ( char [] array )

Creates a String representation of the char[] passed. The result is surrounded by brackets ("[]"), each element is converted to a String via the valueOf(char) and separated by ", ". If the array is null, then "null" is returned.

Since: 1.5
Parameters
TypeNameDescription
char[] array The char array to convert.
Wiki javadoc Use textile entry format.
Add your comments here.
toString
public static String toString ( boolean [] array )

Creates a String representation of the boolean[] passed. The result is surrounded by brackets ("[]"), each element is converted to a String via the valueOf(boolean) and separated by ", ". If the array is null, then "null" is returned.

Since: 1.5
Parameters
TypeNameDescription
boolean[] array The boolean array to convert.
Wiki javadoc Use textile entry format.
Add your comments here.
toString
public static String toString ( float [] array )

Creates a String representation of the float[] passed. The result is surrounded by brackets ("[]"), each element is converted to a String via the valueOf(float) and separated by ", ". If the array is null, then "null" is returned.

Since: 1.5
Parameters
TypeNameDescription
float[] array The float array to convert.
Wiki javadoc Use textile entry format.
Add your comments here.
toString
public static String toString ( double [] array )

Creates a String representation of the double[] passed. The result is surrounded by brackets ("[]"), each element is converted to a String via the valueOf(double) and separated by ", ". If the array is null, then "null" is returned.

Since: 1.5
Parameters
TypeNameDescription
double[] array The double array to convert.
Wiki javadoc Use textile entry format.
Add your comments here.
toString
public static String toString ( byte [] array )
Creates a String representation of the byte[] passed. The result is surrounded by brackets ("[]"), each element is converted to a String via the valueOf(int) and separated by ", ". If the array is null, then "null" is returned.
Since: 1.5
Parameters
TypeNameDescription
byte[] array The byte array to convert.
Wiki javadoc Use textile entry format.
Add your comments here.