I want to sort an ArrayList of type String using a comparator. I have only found examples on how to do it if an ArrayList stores objects.
I have an ArrayList of strings that have 10 symbols and last 5 of those symbols are digits that form a number. I want to solve an array list in ascending order of those numbers that are at the end of each string. How can I do that?
Thanks!