Sorting an ArrayList of Contacts

Posted by Sameera0 on Stack Overflow See other posts from Stack Overflow or by Sameera0
Published on 2009-11-28T23:18:11Z Indexed on 2010/05/06 22:08 UTC
Read the original article Hit count: 169

Filed under:
|
|
|

Ok so I have a been making an addressbook application and have pretty much finished all the key features but I am looking to implement a sort feature in the program.

I want to sort an Arraylist which is of a type called Contact (contactArray) which is a separate class which contains four fields; name, home number, mobile number and address. So I was looking into using the collection sort yet am not sure how i'd implement this.

Is this the right sort I should be using / is it possible to use or should I look into making a custom sort?

© Stack Overflow or respective owner

Related posts about java

Related posts about collections