| java.lang.Object | |
| ↳ | java.util.Arrays | 
Arrays contains static methods which operate on arrays.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  | 
           Returns a 
            Listof the objects in the specified array. | ||||||||||
|  | 
           Performs a binary search for 
            valuein the ascending sorted arrayarray, in the range specified by fromIndex (inclusive) and toIndex (exclusive), usingcomparatorto compare elements. | ||||||||||
|  | 
           Performs a binary search for 
            valuein the ascending sorted arrayarray, in the range specified by fromIndex (inclusive) and toIndex (exclusive). | ||||||||||
|  | 
           Performs a binary search for 
            valuein the ascending sorted arrayarray, in the range specified by fromIndex (inclusive) and toIndex (exclusive). | ||||||||||
|  | 
           Performs a binary search for 
            valuein the ascending sorted arrayarray. | ||||||||||
|  | 
           Performs a binary search for 
            valuein the ascending sorted arrayarray. | ||||||||||
|  | 
           Performs a binary search for 
            valuein the ascending sorted arrayarray, in the range specified by fromIndex (inclusive) and toIndex (exclusive). | ||||||||||
|  | 
           Performs a binary search for 
            valuein the ascending sorted arrayarray, usingcomparatorto compare elements. | ||||||||||
|  | 
           Performs a binary search for 
            valuein the ascending sorted arrayarray, in the range specified by fromIndex (inclusive) and toIndex (exclusive). | ||||||||||
|  | 
           Performs a binary search for 
            valuein the ascending sorted arrayarray. | ||||||||||
|  | 
           Performs a binary search for 
            valuein the ascending sorted arrayarray, in the range specified by fromIndex (inclusive) and toIndex (exclusive). | ||||||||||
|  | 
           Performs a binary search for 
            valuein the ascending sorted arrayarray. | ||||||||||
|  | 
           Performs a binary search for 
            valuein the ascending sorted arrayarray. | ||||||||||
|  | 
           Performs a binary search for 
            valuein the ascending sorted arrayarray, in the range specified by fromIndex (inclusive) and toIndex (exclusive). | ||||||||||
|  | 
           Performs a binary search for 
            valuein the ascending sorted arrayarray. | ||||||||||
|  | 
           Performs a binary search for 
            valuein the ascending sorted arrayarray. | ||||||||||
|  | 
           Performs a binary search for 
            valuein the ascending sorted arrayarray, in the range specified by fromIndex (inclusive) and toIndex (exclusive). | ||||||||||
|  | 
           Performs a binary search for 
            valuein the ascending sorted arrayarray. | ||||||||||
|  | 
           Performs a binary search for 
            valuein the ascending sorted arrayarray, in the range specified by fromIndex (inclusive) and toIndex (exclusive). | ||||||||||
|  | 
           Copies 
            newLengthelements fromoriginalinto a new array. | ||||||||||
|  | 
           Copies 
            newLengthelements fromoriginalinto a new array. | ||||||||||
|  | 
           Copies 
            newLengthelements fromoriginalinto a new array. | ||||||||||
|  | 
           Copies 
            newLengthelements fromoriginalinto a new array. | ||||||||||
|  | 
           Copies 
            newLengthelements fromoriginalinto a new array. | ||||||||||
|  | 
           Copies 
            newLengthelements fromoriginalinto a new array. | ||||||||||
|  | 
           Copies 
            newLengthelements fromoriginalinto a new array. | ||||||||||
|  | 
           Copies 
            newLengthelements fromoriginalinto a new array. | ||||||||||
|  | 
           Copies 
            newLengthelements fromoriginalinto a new array. | ||||||||||
|  | 
           Copies 
            newLengthelements fromoriginalinto a new array. | ||||||||||
|  | 
           Copies elements from 
            originalinto a new array, from indexes start (inclusive) to end (exclusive). | ||||||||||
|  | 
           Copies elements from 
            originalinto a new array, from indexes start (inclusive) to end (exclusive). | ||||||||||
|  | 
           Copies elements from 
            originalinto a new array, from indexes start (inclusive) to end (exclusive). | ||||||||||
|  | 
           Copies elements from 
            originalinto a new array, from indexes start (inclusive) to end (exclusive). | ||||||||||
|  | 
           Copies elements from 
            originalinto a new array, from indexes start (inclusive) to end (exclusive). | ||||||||||
|  | 
           Copies elements from 
            originalinto a new array, from indexes start (inclusive) to end (exclusive). | ||||||||||
|  | 
           Copies elements from 
            originalinto a new array, from indexes start (inclusive) to end (exclusive). | ||||||||||
|  | 
           Copies elements from 
            originalinto a new array, from indexes start (inclusive) to end (exclusive). | ||||||||||
|  | 
           Copies elements from 
            originalinto a new array, from indexes start (inclusive) to end (exclusive). | ||||||||||
|  | 
           Copies elements from 
            originalinto a new array, from indexes start (inclusive) to end (exclusive). | ||||||||||
|  | 
           Returns 
            trueif the two given arrays are deeply equal to one another. | ||||||||||
|  | 
           Returns a hash code based on the "deep contents" of the given array.
           | ||||||||||
|  | 
           Creates a 
           "deep" 
            Stringrepresentation of theObject[]passed, such that if the array contains other arrays, theStringrepresentation of those arrays is generated as well. | ||||||||||
|  | 
           Compares the two arrays.
           | ||||||||||
|  | 
           Compares the two arrays.
           | ||||||||||
|  | 
           Compares the two arrays.
           | ||||||||||
|  | 
           Compares the two arrays.
           | ||||||||||
|  | 
           Compares the two arrays.
           | ||||||||||
|  | 
           Compares the two arrays.
           | ||||||||||
|  | 
           Compares the two arrays.
           | ||||||||||
|  | 
           Compares the two arrays.
           | ||||||||||
|  | 
           Compares the two arrays.
           | ||||||||||
|  | 
           Fills the specified range in the array with the specified element.
           | ||||||||||
|  | 
           Fills the specified array with the specified element.
           | ||||||||||
|  | 
           Fills the specified range in the array with the specified element.
           | ||||||||||
|  | 
           Fills the specified range in the array with the specified element.
           | ||||||||||
|  | 
           Fills the specified array with the specified element.
           | ||||||||||
|  | 
           Fills the specified array with the specified element.
           | ||||||||||
|  | 
           Fills the specified range in the array with the specified element.
           | ||||||||||
|  | 
           Fills the specified array with the specified element.
           | ||||||||||
|  | 
           Fills the specified range in the array with the specified element.
           | ||||||||||
|  | 
           Fills the specified range in the array with the specified element.
           | ||||||||||
|  | 
           Fills the specified array with the specified element.
           | ||||||||||
|  | 
           Fills the specified range in the array with the specified element.
           | ||||||||||
|  | 
           Fills the specified range in the array with the specified element.
           | ||||||||||
|  | 
           Fills the specified array with the specified element.
           | ||||||||||
|  | 
           Fills the specified range in the array with the specified element.
           | ||||||||||
|  | 
           Fills the specified array with the specified element.
           | ||||||||||
|  | 
           Fills the specified array with the specified element.
           | ||||||||||
|  | 
           Fills the specified array with the specified element.
           | ||||||||||
|  | 
           Returns a hash code based on the contents of the given array.
           | ||||||||||
|  | 
           Returns a hash code based on the contents of the given array.
           | ||||||||||
|  | 
           Returns a hash code based on the contents of the given array.
           | ||||||||||
|  | 
           Returns a hash code based on the contents of the given array.
           | ||||||||||
|  | 
           Returns a hash code based on the contents of the given array.
           | ||||||||||
|  | 
           Returns a hash code based on the contents of the given array.
           | ||||||||||
|  | 
           Returns a hash code based on the contents of the given array.
           | ||||||||||
|  | 
           Returns a hash code based on the contents of the given array.
           | ||||||||||
|  | 
           Returns a hash code based on the contents of the given array.
           | ||||||||||
|  | 
           Sorts the specified range in the array in ascending numerical order.
           | ||||||||||
|  | 
           Sorts the specified array in ascending numerical order.
           | ||||||||||
|  | 
           Sorts the specified range in the array in ascending numerical order.
           | ||||||||||
|  | 
           Sorts the specified array using the specified 
            Comparator. | ||||||||||
|  | 
           Sorts the specified array in ascending numerical order.
           | ||||||||||
|  | 
           Sorts the specified array in ascending natural order.
           | ||||||||||
|  | 
           Sorts the specified range in the array in ascending numerical order.
           | ||||||||||
|  | 
           Sorts the specified range in the array in ascending numerical order.
           | ||||||||||
|  | 
           Sorts the specified array in ascending numerical order.
           | ||||||||||
|  | 
           Sorts the specified range in the array using the specified 
            Comparator. | ||||||||||
|  | 
           Sorts the specified range in the array in ascending numerical order.
           | ||||||||||
|  | 
           Sorts the specified array in ascending numerical order.
           | ||||||||||
|  | 
           Sorts the specified range in the array in ascending numerical order.
           | ||||||||||
|  | 
           Sorts the specified range in the array in ascending numerical order.
           | ||||||||||
|  | 
           Sorts the specified array in ascending numerical order.
           | ||||||||||
|  | 
           Sorts the specified array in ascending numerical order.
           | ||||||||||
|  | 
           Sorts the specified range in the array in ascending natural order.
           | ||||||||||
|  | 
           Sorts the specified array in ascending numerical order.
           | ||||||||||
|  | 
           Creates a 
            Stringrepresentation of thelong[]passed. | ||||||||||
|  | 
           Creates a 
            Stringrepresentation of theint[]passed. | ||||||||||
|  | 
           Creates a 
            Stringrepresentation of thechar[]passed. | ||||||||||
|  | 
           Creates a 
            Stringrepresentation of theboolean[]passed. | ||||||||||
|  | 
           Creates a 
            Stringrepresentation of thebyte[]passed. | ||||||||||
|  | 
           Creates a 
            Stringrepresentation of thefloat[]passed. | ||||||||||
|  | 
           Creates a 
            Stringrepresentation of theshort[]passed. | ||||||||||
|  | 
           Creates a 
            Stringrepresentation of theObject[]passed. | ||||||||||
|  | 
           Creates a 
            Stringrepresentation of thedouble[]passed. | ||||||||||
| [Expand] 
           Inherited Methods
           | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class java.lang.Object | |||||||||||
Returns a List of 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.
| array | the array. | 
|---|
List of the elements of the specified array. Performs a binary search for value in the ascending sorted array array, in the range specified by fromIndex (inclusive) and toIndex (exclusive), using comparator to compare elements. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
| array | the sorted array to search. | 
|---|---|
| startIndex | the inclusive start index. | 
| endIndex | the exclusive start index. | 
| value | the element to find. | 
| comparator | the Comparatorused to compare the elements. | 
-index - 1 where the element would be inserted.| ClassCastException | if an element in the array or the search element does not implement Comparable, or cannot be compared to each other. | 
|---|---|
| IllegalArgumentException | if startIndex > endIndex | 
| ArrayIndexOutOfBoundsException | if startIndex < 0 || endIndex > array.length | 
Performs a binary search for value in the ascending sorted array array, in the range specified by fromIndex (inclusive) and toIndex (exclusive). Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
| array | the sorted array to search. | 
|---|---|
| startIndex | the inclusive start index. | 
| endIndex | the exclusive start index. | 
| value | the element to find. | 
-index - 1 where the element would be inserted.| IllegalArgumentException | if startIndex > endIndex | 
|---|---|
| ArrayIndexOutOfBoundsException | if startIndex < 0 || endIndex > array.length | 
Performs a binary search for value in the ascending sorted array array, in the range specified by fromIndex (inclusive) and toIndex (exclusive). Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
| array | the sorted array to search. | 
|---|---|
| startIndex | the inclusive start index. | 
| endIndex | the exclusive start index. | 
| value | the element to find. | 
-index - 1 where the element would be inserted.| IllegalArgumentException | if startIndex > endIndex | 
|---|---|
| ArrayIndexOutOfBoundsException | if startIndex < 0 || endIndex > array.length | 
Performs a binary search for value in the ascending sorted array array. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
| array | the sorted array to search. | 
|---|---|
| value | the element to find. | 
-index - 1 where the element would be inserted. Performs a binary search for value in the ascending sorted array array. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
| array | the sorted array to search. | 
|---|---|
| value | the element to find. | 
-index - 1 where the element would be inserted. Performs a binary search for value in the ascending sorted array array, in the range specified by fromIndex (inclusive) and toIndex (exclusive). Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
| array | the sorted array to search. | 
|---|---|
| startIndex | the inclusive start index. | 
| endIndex | the exclusive start index. | 
| value | the element to find. | 
-index - 1 where the element would be inserted.| IllegalArgumentException | if startIndex > endIndex | 
|---|---|
| ArrayIndexOutOfBoundsException | if startIndex < 0 || endIndex > array.length | 
Performs a binary search for value in the ascending sorted array array, using comparator to compare elements. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
| array | the sorted array to search. | 
|---|---|
| value | the element to find. | 
| comparator | the Comparatorused to compare the elements. | 
-index - 1 where the element would be inserted.| ClassCastException | if an element in the array or the search element does not implement Comparable, or cannot be compared to each other. | 
|---|
Performs a binary search for value in the ascending sorted array array, in the range specified by fromIndex (inclusive) and toIndex (exclusive). Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
| array | the sorted array to search. | 
|---|---|
| startIndex | the inclusive start index. | 
| endIndex | the exclusive start index. | 
| value | the element to find. | 
-index - 1 where the element would be inserted.| IllegalArgumentException | if startIndex > endIndex | 
|---|---|
| ArrayIndexOutOfBoundsException | if startIndex < 0 || endIndex > array.length | 
Performs a binary search for value in the ascending sorted array array. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
| array | the sorted array to search. | 
|---|---|
| value | the element to find. | 
-index - 1 where the element would be inserted. Performs a binary search for value in the ascending sorted array array, in the range specified by fromIndex (inclusive) and toIndex (exclusive). Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
| array | the sorted array to search. | 
|---|---|
| startIndex | the inclusive start index. | 
| endIndex | the exclusive start index. | 
| value | the element to find. | 
-index - 1 where the element would be inserted.| ClassCastException | if an element in the array or the search element does not implement Comparable, or cannot be compared to each other. | 
|---|---|
| IllegalArgumentException | if startIndex > endIndex | 
| ArrayIndexOutOfBoundsException | if startIndex < 0 || endIndex > array.length | 
Performs a binary search for value in the ascending sorted array array. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
| array | the sorted array to search. | 
|---|---|
| value | the element to find. | 
-index - 1 where the element would be inserted. Performs a binary search for value in the ascending sorted array array. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
| array | the sorted array to search. | 
|---|---|
| value | the element to find. | 
-index - 1 where the element would be inserted. Performs a binary search for value in the ascending sorted array array, in the range specified by fromIndex (inclusive) and toIndex (exclusive). Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
| array | the sorted array to search. | 
|---|---|
| startIndex | the inclusive start index. | 
| endIndex | the exclusive start index. | 
| value | the element to find. | 
-index - 1 where the element would be inserted.| IllegalArgumentException | if startIndex > endIndex | 
|---|---|
| ArrayIndexOutOfBoundsException | if startIndex < 0 || endIndex > array.length | 
Performs a binary search for value in the ascending sorted array array. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
| array | the sorted array to search. | 
|---|---|
| value | the element to find. | 
-index - 1 where the element would be inserted. Performs a binary search for value in the ascending sorted array array. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
| array | the sorted array to search. | 
|---|---|
| value | the element to find. | 
-index - 1 where the element would be inserted. Performs a binary search for value in the ascending sorted array array, in the range specified by fromIndex (inclusive) and toIndex (exclusive). Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
| array | the sorted array to search. | 
|---|---|
| startIndex | the inclusive start index. | 
| endIndex | the exclusive start index. | 
| value | the element to find. | 
-index - 1 where the element would be inserted.| IllegalArgumentException | if startIndex > endIndex | 
|---|---|
| ArrayIndexOutOfBoundsException | if startIndex < 0 || endIndex > array.length | 
Performs a binary search for value in the ascending sorted array array. Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
| array | the sorted array to search. | 
|---|---|
| value | the element to find. | 
-index - 1 where the element would be inserted.| ClassCastException | if an element in the array or the search element does not implement Comparable, or cannot be compared to each other. | 
|---|
Performs a binary search for value in the ascending sorted array array, in the range specified by fromIndex (inclusive) and toIndex (exclusive). Searching in an unsorted array has an undefined result. It's also undefined which element is found if there are multiple occurrences of the same element.
| array | the sorted array to search. | 
|---|---|
| startIndex | the inclusive start index. | 
| endIndex | the exclusive start index. | 
| value | the element to find. | 
-index - 1 where the element would be inserted.| IllegalArgumentException | if startIndex > endIndex | 
|---|---|
| ArrayIndexOutOfBoundsException | if startIndex < 0 || endIndex > array.length | 
Copies newLength elements from original into a new array. If newLength is greater than original.length, the result is padded with the value null.
| original | the original array | 
|---|---|
| newLength | the length of the new array | 
| newType | the class of the new array | 
| NegativeArraySizeException | if newLength < 0 | 
|---|---|
| NullPointerException | if original == null | 
| ArrayStoreException | if a value in originalis incompatible with T | 
Copies newLength elements from original into a new array. If newLength is greater than original.length, the result is padded with the value (short) 0.
| original | the original array | 
|---|---|
| newLength | the length of the new array | 
| NegativeArraySizeException | if newLength < 0 | 
|---|---|
| NullPointerException | if original == null | 
Copies newLength elements from original into a new array. If newLength is greater than original.length, the result is padded with the value 0L.
| original | the original array | 
|---|---|
| newLength | the length of the new array | 
| NegativeArraySizeException | if newLength < 0 | 
|---|---|
| NullPointerException | if original == null | 
Copies newLength elements from original into a new array. If newLength is greater than original.length, the result is padded with the value 0.0d.
| original | the original array | 
|---|---|
| newLength | the length of the new array | 
| NegativeArraySizeException | if newLength < 0 | 
|---|---|
| NullPointerException | if original == null | 
Copies newLength elements from original into a new array. If newLength is greater than original.length, the result is padded with the value false.
| original | the original array | 
|---|---|
| newLength | the length of the new array | 
| NegativeArraySizeException | if newLength < 0 | 
|---|---|
| NullPointerException | if original == null | 
Copies newLength elements from original into a new array. If newLength is greater than original.length, the result is padded with the value '\\u0000'.
| original | the original array | 
|---|---|
| newLength | the length of the new array | 
| NegativeArraySizeException | if newLength < 0 | 
|---|---|
| NullPointerException | if original == null | 
Copies newLength elements from original into a new array. If newLength is greater than original.length, the result is padded with the value 0.
| original | the original array | 
|---|---|
| newLength | the length of the new array | 
| NegativeArraySizeException | if newLength < 0 | 
|---|---|
| NullPointerException | if original == null | 
Copies newLength elements from original into a new array. If newLength is greater than original.length, the result is padded with the value 0.0f.
| original | the original array | 
|---|---|
| newLength | the length of the new array | 
| NegativeArraySizeException | if newLength < 0 | 
|---|---|
| NullPointerException | if original == null | 
Copies newLength elements from original into a new array. If newLength is greater than original.length, the result is padded with the value (byte) 0.
| original | the original array | 
|---|---|
| newLength | the length of the new array | 
| NegativeArraySizeException | if newLength < 0 | 
|---|---|
| NullPointerException | if original == null | 
Copies newLength elements from original into a new array. If newLength is greater than original.length, the result is padded with the value null.
| original | the original array | 
|---|---|
| newLength | the length of the new array | 
| NegativeArraySizeException | if newLength < 0 | 
|---|---|
| NullPointerException | if original == null | 
Copies elements from original into a new array, from indexes start (inclusive) to end (exclusive). The original order of elements is preserved. If end is greater than original.length, the result is padded with the value (byte) 0.
| original | the original array | 
|---|---|
| start | the start index, inclusive | 
| end | the end index, exclusive | 
| ArrayIndexOutOfBoundsException | if start < 0 || start > original.length | 
|---|---|
| IllegalArgumentException | if start > end | 
| NullPointerException | if original == null | 
Copies elements from original into a new array, from indexes start (inclusive) to end (exclusive). The original order of elements is preserved. If end is greater than original.length, the result is padded with the value null.
| original | the original array | 
|---|---|
| start | the start index, inclusive | 
| end | the end index, exclusive | 
| ArrayIndexOutOfBoundsException | if start < 0 || start > original.length | 
|---|---|
| IllegalArgumentException | if start > end | 
| NullPointerException | if original == null | 
Copies elements from original into a new array, from indexes start (inclusive) to end (exclusive). The original order of elements is preserved. If end is greater than original.length, the result is padded with the value null.
| original | the original array | 
|---|---|
| start | the start index, inclusive | 
| end | the end index, exclusive | 
| ArrayIndexOutOfBoundsException | if start < 0 || start > original.length | 
|---|---|
| IllegalArgumentException | if start > end | 
| NullPointerException | if original == null | 
| ArrayStoreException | if a value in originalis incompatible with T | 
Copies elements from original into a new array, from indexes start (inclusive) to end (exclusive). The original order of elements is preserved. If end is greater than original.length, the result is padded with the value 0.0d.
| original | the original array | 
|---|---|
| start | the start index, inclusive | 
| end | the end index, exclusive | 
| ArrayIndexOutOfBoundsException | if start < 0 || start > original.length | 
|---|---|
| IllegalArgumentException | if start > end | 
| NullPointerException | if original == null | 
Copies elements from original into a new array, from indexes start (inclusive) to end (exclusive). The original order of elements is preserved. If end is greater than original.length, the result is padded with the value 0.
| original | the original array | 
|---|---|
| start | the start index, inclusive | 
| end | the end index, exclusive | 
| ArrayIndexOutOfBoundsException | if start < 0 || start > original.length | 
|---|---|
| IllegalArgumentException | if start > end | 
| NullPointerException | if original == null | 
Copies elements from original into a new array, from indexes start (inclusive) to end (exclusive). The original order of elements is preserved. If end is greater than original.length, the result is padded with the value 0L.
| original | the original array | 
|---|---|
| start | the start index, inclusive | 
| end | the end index, exclusive | 
| ArrayIndexOutOfBoundsException | if start < 0 || start > original.length | 
|---|---|
| IllegalArgumentException | if start > end | 
| NullPointerException | if original == null | 
Copies elements from original into a new array, from indexes start (inclusive) to end (exclusive). The original order of elements is preserved. If end is greater than original.length, the result is padded with the value false.
| original | the original array | 
|---|---|
| start | the start index, inclusive | 
| end | the end index, exclusive | 
| ArrayIndexOutOfBoundsException | if start < 0 || start > original.length | 
|---|---|
| IllegalArgumentException | if start > end | 
| NullPointerException | if original == null | 
Copies elements from original into a new array, from indexes start (inclusive) to end (exclusive). The original order of elements is preserved. If end is greater than original.length, the result is padded with the value '\\u0000'.
| original | the original array | 
|---|---|
| start | the start index, inclusive | 
| end | the end index, exclusive | 
| ArrayIndexOutOfBoundsException | if start < 0 || start > original.length | 
|---|---|
| IllegalArgumentException | if start > end | 
| NullPointerException | if original == null | 
Copies elements from original into a new array, from indexes start (inclusive) to end (exclusive). The original order of elements is preserved. If end is greater than original.length, the result is padded with the value (short) 0.
| original | the original array | 
|---|---|
| start | the start index, inclusive | 
| end | the end index, exclusive | 
| ArrayIndexOutOfBoundsException | if start < 0 || start > original.length | 
|---|---|
| IllegalArgumentException | if start > end | 
| NullPointerException | if original == null | 
Copies elements from original into a new array, from indexes start (inclusive) to end (exclusive). The original order of elements is preserved. If end is greater than original.length, the result is padded with the value 0.0f.
| original | the original array | 
|---|---|
| start | the start index, inclusive | 
| end | the end index, exclusive | 
| ArrayIndexOutOfBoundsException | if start < 0 || start > original.length | 
|---|---|
| IllegalArgumentException | if start > end | 
| NullPointerException | if original == null | 
Returns true if the two given arrays are deeply equal to one another. Unlike the method equals(Object[] array1, Object[] array2), this method is appropriate for use for nested arrays of arbitrary depth. 
 Two array references are considered deeply equal if they are both null, or if they refer to arrays that have the same length and the elements at each index in the two arrays are equal. 
 Two null elements element1 and element2 are possibly deeply equal if any of the following conditions satisfied: 
 element1 and element2 are both arrays of object reference types, and Arrays.deepEquals(element1, element2) would return true. 
 element1 and element2 are arrays of the same primitive type, and the appropriate overloading of Arrays.equals(element1, element2) would return true. 
 element1 == element2 
 element1.equals(element2) would return true. 
 Note that this definition permits null elements at any depth. 
If either of the given arrays contain themselves as elements, the behavior of this method is uncertain.
| array1 | the first Objectarray. | 
|---|---|
| array2 | the second Objectarray. | 
true if both arrays are null or if the arrays have the same length and the elements at each index in the two arrays are equal according to equals(), false otherwise. Returns a hash code based on the "deep contents" of the given array. If the array contains other arrays as its elements, the hash code is based on their contents not their identities. So it is not acceptable to invoke this method on an array that contains itself as an element, either directly or indirectly.
 For any two arrays a and b, if Arrays.deepEquals(a, b) returns true, it means that the return value of Arrays.deepHashCode(a) equals Arrays.deepHashCode(b). 
 The computation of the value returned by this method is similar to that of the value returned by hashCode() invoked on a List containing a sequence of instances representing the elements of array in the same order. The difference is: If an element e of array is itself an array, its hash code is computed by calling the appropriate overloading of Arrays.hashCode(e) if e is an array of a primitive type, or by calling Arrays.deepHashCode(e) recursively if e is an array of a reference type. 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 is 0.
| array | the array whose hash code to compute. | 
|---|
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.
| array | the Objectarray to convert. | 
|---|
String representation of array.Compares the two arrays.
| array1 | the first chararray. | 
|---|---|
| array2 | the second chararray. | 
true if both arrays are null or if the arrays have the same length and the elements at each index in the two arrays are equal, false otherwise. Compares the two arrays.
| array1 | the first Objectarray. | 
|---|---|
| array2 | the second Objectarray. | 
true if both arrays are null or if the arrays have the same length and the elements at each index in the two arrays are equal according to equals(), false otherwise. Compares the two arrays.
| array1 | the first intarray. | 
|---|---|
| array2 | the second intarray. | 
true if both arrays are null or if the arrays have the same length and the elements at each index in the two arrays are equal, false otherwise. Compares the two arrays. The values are compared in the same manner as Float.equals().
| array1 | the first floatarray. | 
|---|---|
| array2 | the second floatarray. | 
true if both arrays are null or if the arrays have the same length and the elements at each index in the two arrays are equal, false otherwise.Compares the two arrays. The values are compared in the same manner as Double.equals().
| array1 | the first doublearray. | 
|---|---|
| array2 | the second doublearray. | 
true if both arrays are null or if the arrays have the same length and the elements at each index in the two arrays are equal, false otherwise.Compares the two arrays.
| array1 | the first shortarray. | 
|---|---|
| array2 | the second shortarray. | 
true if both arrays are null or if the arrays have the same length and the elements at each index in the two arrays are equal, false otherwise. Compares the two arrays.
| array1 | the first bytearray. | 
|---|---|
| array2 | the second bytearray. | 
true if both arrays are null or if the arrays have the same length and the elements at each index in the two arrays are equal, false otherwise. Compares the two arrays.
| array1 | the first longarray. | 
|---|---|
| array2 | the second longarray. | 
true if both arrays are null or if the arrays have the same length and the elements at each index in the two arrays are equal, false otherwise. Compares the two arrays.
| array1 | the first booleanarray. | 
|---|---|
| array2 | the second booleanarray. | 
true if both arrays are null or if the arrays have the same length and the elements at each index in the two arrays are equal, false otherwise. Fills the specified range in the array with the specified element.
| array | the booleanarray to fill. | 
|---|---|
| start | the first index to fill. | 
| end | the last + 1 index to fill. | 
| value | the booleanelement. | 
| IllegalArgumentException | if start > end. | 
|---|---|
| ArrayIndexOutOfBoundsException | if start < 0orend > array.length. | 
Fills the specified array with the specified element.
| array | the intarray to fill. | 
|---|---|
| value | the intelement. | 
Fills the specified range in the array with the specified element.
| array | the intarray to fill. | 
|---|---|
| start | the first index to fill. | 
| end | the last + 1 index to fill. | 
| value | the intelement. | 
| IllegalArgumentException | if start > end. | 
|---|---|
| ArrayIndexOutOfBoundsException | if start < 0orend > array.length. | 
Fills the specified range in the array with the specified element.
| array | the doublearray to fill. | 
|---|---|
| start | the first index to fill. | 
| end | the last + 1 index to fill. | 
| value | the doubleelement. | 
| IllegalArgumentException | if start > end. | 
|---|---|
| ArrayIndexOutOfBoundsException | if start < 0orend > array.length. | 
Fills the specified array with the specified element.
| array | the chararray to fill. | 
|---|---|
| value | the charelement. | 
Fills the specified array with the specified element.
| array | the floatarray to fill. | 
|---|---|
| value | the floatelement. | 
Fills the specified range in the array with the specified element.
| array | the chararray to fill. | 
|---|---|
| start | the first index to fill. | 
| end | the last + 1 index to fill. | 
| value | the charelement. | 
| IllegalArgumentException | if start > end. | 
|---|---|
| ArrayIndexOutOfBoundsException | if start < 0orend > array.length. | 
Fills the specified array with the specified element.
| array | the longarray to fill. | 
|---|---|
| value | the longelement. | 
Fills the specified range in the array with the specified element.
| array | the floatarray to fill. | 
|---|---|
| start | the first index to fill. | 
| end | the last + 1 index to fill. | 
| value | the floatelement. | 
| IllegalArgumentException | if start > end. | 
|---|---|
| ArrayIndexOutOfBoundsException | if start < 0orend > array.length. | 
Fills the specified range in the array with the specified element.
| array | the Objectarray to fill. | 
|---|---|
| start | the first index to fill. | 
| end | the last + 1 index to fill. | 
| value | the Objectelement. | 
| IllegalArgumentException | if start > end. | 
|---|---|
| ArrayIndexOutOfBoundsException | if start < 0orend > array.length. | 
Fills the specified array with the specified element.
| array | the bytearray to fill. | 
|---|---|
| value | the byteelement. | 
Fills the specified range in the array with the specified element.
| array | the shortarray to fill. | 
|---|---|
| start | the first index to fill. | 
| end | the last + 1 index to fill. | 
| value | the shortelement. | 
| IllegalArgumentException | if start > end. | 
|---|---|
| ArrayIndexOutOfBoundsException | if start < 0orend > array.length. | 
Fills the specified range in the array with the specified element.
| array | the bytearray to fill. | 
|---|---|
| start | the first index to fill. | 
| end | the last + 1 index to fill. | 
| value | the byteelement. | 
| IllegalArgumentException | if start > end. | 
|---|---|
| ArrayIndexOutOfBoundsException | if start < 0orend > array.length. | 
Fills the specified array with the specified element.
| array | the doublearray to fill. | 
|---|---|
| value | the doubleelement. | 
Fills the specified range in the array with the specified element.
| array | the longarray to fill. | 
|---|---|
| start | the first index to fill. | 
| end | the last + 1 index to fill. | 
| value | the longelement. | 
| IllegalArgumentException | if start > end. | 
|---|---|
| ArrayIndexOutOfBoundsException | if start < 0orend > array.length. | 
Fills the specified array with the specified element.
| array | the booleanarray to fill. | 
|---|---|
| value | the booleanelement. | 
Fills the specified array with the specified element.
| array | the shortarray to fill. | 
|---|---|
| value | the shortelement. | 
Fills the specified array with the specified element.
| array | the Objectarray to fill. | 
|---|---|
| value | the Objectelement. | 
Returns a hash code based on the contents of the given array. For any two boolean arrays a and b, if Arrays.equals(a, b) returns true, it means that the return value of Arrays.hashCode(a) equals Arrays.hashCode(b). 
 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 is 0.
| array | the array whose hash code to compute. | 
|---|
array. Returns a hash code based on the contents of the given array. For any two not-null int arrays a and b, if Arrays.equals(a, b) returns true, it means that the return value of Arrays.hashCode(a) equals Arrays.hashCode(b). 
 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 is 0.
| array | the array whose hash code to compute. | 
|---|
array. Returns a hash code based on the contents of the given array. If the array contains other arrays as its elements, the hash code is based on their identities not their contents. So it is acceptable to invoke this method on an array that contains itself as an element, either directly or indirectly.
 For any two arrays a and b, if Arrays.equals(a, b) returns true, it means that the return value of Arrays.hashCode(a) equals Arrays.hashCode(b). 
 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 is 0.
| array | the array whose hash code to compute. | 
|---|
array. Returns a hash code based on the contents of the given array. For any two double arrays a and b, if Arrays.equals(a, b) returns true, it means that the return value of Arrays.hashCode(a) equals Arrays.hashCode(b). 
 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 is 0.
| array | the array whose hash code to compute. | 
|---|
array. Returns a hash code based on the contents of the given array. For any two short arrays a and b, if Arrays.equals(a, b) returns true, it means that the return value of Arrays.hashCode(a) equals Arrays.hashCode(b). 
 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 is 0.
| array | the array whose hash code to compute. | 
|---|
array. Returns a hash code based on the contents of the given array. For any two byte arrays a and b, if Arrays.equals(a, b) returns true, it means that the return value of Arrays.hashCode(a) equals Arrays.hashCode(b). 
 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 is 0.
| array | the array whose hash code to compute. | 
|---|
array. Returns a hash code based on the contents of the given array. For any two char arrays a and b, if Arrays.equals(a, b) returns true, it means that the return value of Arrays.hashCode(a) equals Arrays.hashCode(b). 
 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 is 0.
| array | the array whose hash code to compute. | 
|---|
array. Returns a hash code based on the contents of the given array. For any two float arrays a and b, if Arrays.equals(a, b) returns true, it means that the return value of Arrays.hashCode(a) equals Arrays.hashCode(b). 
 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 is 0.
| array | the array whose hash code to compute. | 
|---|
array. Returns a hash code based on the contents of the given array. For any two long arrays a and b, if Arrays.equals(a, b) returns true, it means that the return value of Arrays.hashCode(a) equals Arrays.hashCode(b). 
 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 is 0.
| array | the array whose hash code to compute. | 
|---|
array. Sorts the specified range in the array in ascending numerical order.
| array | the longarray to be sorted. | 
|---|---|
| start | the start index to sort. | 
| end | the last + 1 index to sort. | 
| IllegalArgumentException | if start > end. | 
|---|---|
| ArrayIndexOutOfBoundsException | if start < 0orend > array.length. | 
Sorts the specified array in ascending numerical order.
| array | the chararray to be sorted. | 
|---|
Sorts the specified range in the array in ascending numerical order.
| array | the intarray to be sorted. | 
|---|---|
| start | the start index to sort. | 
| end | the last + 1 index to sort. | 
| IllegalArgumentException | if start > end. | 
|---|---|
| ArrayIndexOutOfBoundsException | if start < 0orend > array.length. | 
Sorts the specified array using the specified Comparator. All elements must be comparable to each other without a ClassCastException being thrown.
| array | the Objectarray to be sorted. | 
|---|---|
| comparator | the Comparator. | 
| ClassCastException | if elements in the array cannot be compared to each other using the Comparator. | 
|---|
Sorts the specified array in ascending numerical order.
| array | the intarray to be sorted. | 
|---|
Sorts the specified array in ascending natural order.
| array | the Objectarray to be sorted. | 
|---|
| ClassCastException | if an element in the array does not implement Comparableor if some elements cannot be compared to each other. | 
|---|
Sorts the specified range in the array in ascending numerical order.
| array | the chararray to be sorted. | 
|---|---|
| start | the start index to sort. | 
| end | the last + 1 index to sort. | 
| IllegalArgumentException | if start > end. | 
|---|---|
| ArrayIndexOutOfBoundsException | if start < 0orend > array.length. | 
Sorts the specified range in the array in ascending numerical order. The values are sorted according to the order imposed by Double.compareTo().
| array | the doublearray to be sorted. | 
|---|---|
| start | the start index to sort. | 
| end | the last + 1 index to sort. | 
| IllegalArgumentException | if start > end. | 
|---|---|
| ArrayIndexOutOfBoundsException | if start < 0orend > array.length. | 
Sorts the specified array in ascending numerical order.
| array | the floatarray to be sorted. | 
|---|
Sorts the specified range in the array using the specified Comparator. All elements must be comparable to each other without a ClassCastException being thrown.
| array | the Objectarray to be sorted. | 
|---|---|
| start | the start index to sort. | 
| end | the last + 1 index to sort. | 
| comparator | the Comparator. | 
| ClassCastException | if elements in the array cannot be compared to each other using the Comparator. | 
|---|---|
| IllegalArgumentException | if start > end. | 
| ArrayIndexOutOfBoundsException | if start < 0orend > array.length. | 
Sorts the specified range in the array in ascending numerical order.
| array | the bytearray to be sorted. | 
|---|---|
| start | the start index to sort. | 
| end | the last + 1 index to sort. | 
| IllegalArgumentException | if start > end. | 
|---|---|
| ArrayIndexOutOfBoundsException | if start < 0orend > array.length. | 
Sorts the specified array in ascending numerical order.
| array | the longarray to be sorted. | 
|---|
Sorts the specified range in the array in ascending numerical order. The values are sorted according to the order imposed by Float.compareTo().
| array | the floatarray to be sorted. | 
|---|---|
| start | the start index to sort. | 
| end | the last + 1 index to sort. | 
| IllegalArgumentException | if start > end. | 
|---|---|
| ArrayIndexOutOfBoundsException | if start < 0orend > array.length. | 
Sorts the specified range in the array in ascending numerical order.
| array | the shortarray to be sorted. | 
|---|---|
| start | the start index to sort. | 
| end | the last + 1 index to sort. | 
| IllegalArgumentException | if start > end. | 
|---|---|
| ArrayIndexOutOfBoundsException | if start < 0orend > array.length. | 
Sorts the specified array in ascending numerical order.
| array | the bytearray to be sorted. | 
|---|
Sorts the specified array in ascending numerical order.
| array | the shortarray to be sorted. | 
|---|
Sorts the specified range in the array in ascending natural order. All elements must implement the Comparable interface and must be comparable to each other without a ClassCastException being thrown.
| array | the Objectarray to be sorted. | 
|---|---|
| start | the start index to sort. | 
| end | the last + 1 index to sort. | 
| ClassCastException | if an element in the array does not implement Comparableor some elements cannot be compared to each other. | 
|---|---|
| IllegalArgumentException | if start > end. | 
| ArrayIndexOutOfBoundsException | if start < 0orend > array.length. | 
Sorts the specified array in ascending numerical order.
| array | the doublearray to be sorted. | 
|---|
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.
| array | the longarray to convert. | 
|---|
String representation of 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.
| array | the intarray to convert. | 
|---|
String representation of 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.
| array | the chararray to convert. | 
|---|
String representation of 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.
| array | the booleanarray to convert. | 
|---|
String representation of 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.
| array | the bytearray to convert. | 
|---|
String representation of 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.
| array | the floatarray to convert. | 
|---|
String representation of 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.
| array | the shortarray to convert. | 
|---|
String representation of 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.
| array | the Objectarray to convert. | 
|---|
String representation of 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.
| array | the doublearray to convert. | 
|---|
String representation of array.