Sort String List

-3

Does anyone know how to sort a list ( Array List ) of Strings that contains alphanumeric information of type:

"ABC 12"
"A 8"
    
asked by anonymous 20.06.2017 / 19:33

1 answer

0

Collections.sort (yourList, yourClasseComparator);

Where the comparator should implement the java.util.Comparato interface How to use it you can see in api, there it explains what should be the return of the compare method according to the comparison method that you will use ...

    
20.06.2017 / 20:50