I\'ve got one class, that I sort it already by one attribute. Now I need to make another thing, that I need to create another way to sort my data. How can I make it, so I ca
You can only have one compareTo() method in your class.
compareTo()
If you want to sort the same class more than one way, create Comparator implementations.
Comparator