posted 23 years ago
hi!
How can you arrange words in ascending order ignoring the case?
I always get an order in which words that start with an uppercase letter are on top.
example: Z,a,b,c,E
result: E,Z,a,b,c
here's my partial code
Collections.sort( ListOfNames );
Iterator firstName = ListOfNames.iterator();
while ( firstName.hasNext() )
{
System.out.println( firstName.next() );
}
Thanks!
Panday