I have a game where, at the end, if the player's score is higher than any of the saved highscores, they are asked to type in their name in order to save their score. I also have an Activity where the five highscores are displayed, next to the name provided for each one of them.
I don't know how to go about saving the highscores with the name the player provides. I've thought about an Arraylist containing instances of a Highscore class, which store a name and a score, but it seems like overkill.
How should I accomplish this?