I used Collections.sort(playersList); to sort a List. So, I think playersList is sorted now. But how can I get the first element of the list? playersList[0] does not work.
I used Collections.sort(playersList); to sort a List . So, I think playersList is sorted
Share
Java has limited operator polymorphism. So you use the
get()method onListobjects, not the array index operator ([])