How can I use the getTop() and getNearby() methods to display the high scores? I want to show all the high scores in descending order of score. I have a randomly generated score to a user for a test, and the user will get a new score when the newly generated score is higher than their current score. I think all this works but I want to display all the users with their scores and you should be able to scroll through the list, or at least just look at the top few with getTop(7) or something. The code i have right now is: I know to (or think I should) use 'myInfo.getTop(0);' but I don't know what to do with that.
UserInfo myInfo = UserInfo.getMyInfo();
Random myRandom = new Random();
int newScore = myRandom.nextInt(2500) + 1;
if (newScore > myInfo.getScore()) myInfo.setScore(newScore);
GreenfootImage scoreText = new GreenfootImage("Score: " + myInfo.getScore(), 36, null, null);
getBackground().drawImage(scoreText, (getWidth() / 2) - (scoreText.getWidth() / 2), (int) getHeight() - scoreText.getHeight());

