How can I get a first element from a sorted list?

Posted by Roman on Stack Overflow See other posts from Stack Overflow or by Roman
Published on 2010-03-23T20:29:43Z Indexed on 2010/03/23 20:33 UTC
Read the original article Hit count: 248

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about java

Related posts about list