Sort an Arraylist having Group of Objects

Employee object having emp name, emp id, emp salary... An arraylist has a list of employee object.How will you sort this arraylist?

Questions by RamyaSuresh   answers by RamyaSuresh

Showing Answers 1 - 2 of 2 Answers

Gaurav Singh

  • Jul 13th, 2011
 

Implement the Comparator Interface for the Employee Class. Then customize your sort in the implemented method from interface

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions