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 QuestionsCategory: JavaLet 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?
Vaishnavi Talawar asked 3 years ago