Sort a list that contains a custom class
问题 so I'm currently doing an exercise for college that has several optional parts (because we havn't done this in class yet), one of them being to use lists instead of arrays (so it'd be variable size) and another one printing the list sorted by points (I'll get to that now) So, I have the Player.java class which looks like this. public class Player { String name; String password; int chips; int points; public Player(String n, String pw, int c, int p) { name = n; password = pw; chips = c; points