How to sort an ArrayList's string value alphabeticaly?
807598Oct 5 2006 — edited Jun 2 2008Hey Guys
I am really stuck sorting my arrays alphabeticaly.
I have got this array list on my class called
allCustomers() .
when i run something like this
public void listAllCustomers()
{
int count;
for(count=0;count<allCustomers.size();count++)
{
Person owner= (Person) allCustomers.get(count);
System.out.println(owner.getName(););
}
}
it does show all the customer names but i was wondering how to put em into alphabetical word..
cheerz guys..
really need help with this..:)