Advertisement
Guest User

Untitled

a guest
Oct 19th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. int highScores[] = new int[highScoreArray.size()];
  2. for (int i = 0; i < highScores.length; i++) {
  3. highScores[i] = Integer.parseInt(highScoreArray.get(i));
  4. }
  5. Arrays.sort(highScores);
  6. String returnArray[] = new String[highScores.length];
  7. for(int j = 0; j<highScores.length; j++){
  8. returnArray[j] = String.valueOf(highScores[j]);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement