Ojbect Serializable Collections.reverseOrder
For playing, thanks http://yfain.github.io/Java4Kids/#_writing_into_a_file. import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.StandardOpenOption; import java.time.LocalDateTime; import java.util.*; public class ScoreManager { public static void main(String[] args){ List<Score> scores = new ArrayList<>(); Path path = Paths.get("scores.ser"); if (Files.exists(path)) { scores = loadScores(path); } else { scores = new ArrayList<>(); } ...