Sort String List

Asked

Viewed 524 times

-3

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

"ABC 12"
"A 8"

1 answer

0

Collections.Sort(tuaList, tuaClasseComparator);

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.