Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int highScores[] = new int[highScoreArray.size()];
- for (int i = 0; i < highScores.length; i++) {
- highScores[i] = Integer.parseInt(highScoreArray.get(i));
- }
- Arrays.sort(highScores);
- String returnArray[] = new String[highScores.length];
- for(int j = 0; j<highScores.length; j++){
- returnArray[j] = String.valueOf(highScores[j]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement