Let say there is a Customer class. We add objects of the Customer class to an ArrayList. How can we sort the Customer objects in ArrayList by using the customer firstName attribute of Customer class?
All Questions › Category: Java › Let say there is a Customer class. We add objects of the Customer class to an ArrayList. How can we sort the Customer objects in ArrayList by using the customer firstName attribute of Customer class?