You can use Arrays.sort() method to sort the array and then take the first and last elements of that sorted array. See example. Iterating array ...
確定! 回上一頁