Does anyone know how to sort a list ( Array List
) of Strings
that contains alphanumeric information of type:
"ABC 12"
"A 8"
Does anyone know how to sort a list ( Array List
) of Strings
that contains alphanumeric information of type:
"ABC 12"
"A 8"
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 ...