I need some help how to sort an ArrayList of objects. I have the superclass Account and two subclasses SavingsAccount and CreditAccount. Inside the Account class I have this met
You can use sort method in Collections utility and your custom implementation of Comparator interface.
sort
Collections
Comparator