Im trying to build a highscore for a game. A Run is an ojbect made for this game. The class looks like this:
public class Run {
private int level;
private int moves;
private int time;}
The array of the highscore Looks like this:
Run Highscoresaving[] = new Run[10];
Now i would like to sort this array. The most important value is a high Level, second a low amount of moves and third a short amount of time. Moves are just needed if the run reached the same Level and time is just needed if the run reached the same Level and had the same amout of moves.