static void sort(byte[] a)
static void sort(byte[] a, int fromIndex, int toIndex)
Throws:
static void sort(char[] a)
static void sort(char[] a, int fromIndex, int toIndex)
Throws:
static void sort(float[] a)
static void sort(float[] a, int fromIndex, int toIndex)
Throws:
static void sort(int[] a)
static void sort(int[] a, int fromIndex, int toIndex)
Throws:
static void sort(Object[] a)
static void sort(Object[] a, Comparator c)
static void sort(Object[] a, int fromIndex, int toIndex)
static void sort(Object[] a, int fromIndex, int toIndex, Comparator c)
static void sort(short[] a)
static void sort(short[] a, int fromIndex, int toIndex)
Throws:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
sort(byte[] a) method:
Sorts the specified array of bytes into ascending numerical order.
sort(byte[] a, int fromIndex, int toIndex) method:
Sorts the specified range of the specified array of bytes into ascending numerical order. The range to be sorted extends from index fromIndex, inclusive, to index toIndex, exclusive. If fromIndex==toIndex, the range to be sorted is empty.
sort(char[] a) method:
Sorts the specified array of bytes into ascending numerical order.
sort(char[] a, int fromIndex, int toIndex) method:
Sorts the specified range of the specified array of bytes into ascending numerical order. The range to be sorted extends from index fromIndex, inclusive, to index toIndex, exclusive. If fromIndex==toIndex, the range to be sorted is empty.
sort(flaot[] a) method:
Sorts the specified array of bytes into ascending numerical order.
sort(float[] a, int fromIndex, int toIndex) method:
Sorts the specified range of the specified array of bytes into ascending numerical order. The range to be sorted extends from index fromIndex, inclusive, to index toIndex, exclusive. If fromIndex==toIndex, the range to be sorted is empty.
sort(int[] a) method:
Sorts the specified array of bytes into ascending numerical order.
sort(int[] a, int fromIndex, int toIndex) method:
Sorts the specified range of the specified array of bytes into ascending numerical order. The range to be sorted extends from index fromIndex, inclusive, to index toIndex, exclusive. If fromIndex==toIndex, the range to be sorted is empty.
sort(short[] a) method:
Sorts the specified array of bytes into ascending numerical order.
sort(short[] a, int fromIndex, int toIndex) method:
Sorts the specified range of the specified array of bytes into ascending numerical order. The range to be sorted extends from index fromIndex, inclusive, to index toIndex, exclusive. If fromIndex==toIndex, the range to be sorted is empty.
sort(Object[] a) method:
Sorts the specified array of objects into ascending order, according to the natural ordering of its elements. All elements in the array must implement the Comparable interface. Furthermore, all elements in the array must be mutually comparable that is, e1.compareTo(e2) must not throw a ClassCastException for any elements e1 and e2 in the array.
sort(Object[] a, Comparator c) method:
Sorts the specified array of objects according to the order induced by the specified comparator. All elements in the array must be mutually comparable by the specified comparator that is, c.compare(e1, e2) must not throw a ClassCastException for any elements e1 and e2 in the array.
sort(float[] a, int fromIndex, int toIndex) method:
Sorts the specified range of the specified array of objects into ascending order, according to the natural ordering of its elements. The range to be sorted extends from index fromIndex, inclusive, to index toIndex, exclusive. If fromIndex==toIndex, the range to be sorted is empty. All elements in this range must implement the Comparable interface. Furthermore, all elements in this range must be mutually comparable that is, e1.compareTo(e2) must not throw a ClassCastException for any elements e1 and e2 in the array.
sort(Object[] a, int fromIndex, int toIndex, Comparator c) method:
Sorts the specified range of the specified array of objects according to the order induced by the specified comparator. The range to be sorted extends from index fromIndex, inclusive, to index toIndex, exclusive. If fromIndex==toIndex, the range to be sorted is empty. All elements in the range must be mutually comparable by the specified comparator that is, c.compare(e1, e2) must not throw a ClassCastException for any elements e1 and e2 in the range.
Example
int intArr[] = {30,20,5,12,55};
Arrays.sort(intArr);
The example above orders the contained elements of the intArr variable.