I have an ArrayList in one of my Java 15 project classes, which looks something like this:
ArrayList<String> myList = [Student1:15, Student2:38, Student3:87; Student4:10]
The ArrayList holds Strings where each element is the name of the student and their exam mark, with a colon in between.
The aim is to sort this list in order of lowest to highest mark. How would one go about doing that?