Arrange an array of strings in alphabetical order.
String[] Arrays.sort( |
The sort() method arranges an array in ascending order.
It sorts arrays of strings alphabetically and arrays of integers numerically.
Arrays.sort(array) |
Arrays.sort(array, |
Parameter |
Description |
array |
Necessary: Rephrase the array intended for sorting. |
start |
Voluntary: Rephrase the starting index position of the first element (inclusive) to be sorted. |
end |
Voluntary: Rephrase the ending index position of the last element (exclusive) to be sorted. |
Returns: |
No return value |
Java version: |
1.2 (java.util) |
Arrange an array of integers in numerical order.
int[] |
Sort an integer array numerically, limited to the elements from index 1 to 3.
int[]
|