title: ArrayList IndexOf with a specific method?
body: <p>My issue with arraylists is simple; I have a class called Score, it consists of an integer called myScore and a Name class (not relevant) called myPlayerName. I have an arraylist of these Score(s) called scoreList, and i want to be able to print out the ten highest scores in that list (a top ten list if you will), but when i call a collections.sort() method on the arraylist, it seems to return an error. I think this may be because of the fact that my score class has two parameters. how can I order an arrayList based on a specific part of an element. Is it possible to sort them by the score integer?</p>