File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Sorting of string elements in alphabetical order
Joined: Feb 27, 2003
Jan 04, 2005 19:02:00
I am having an
array of some size.
I want to sort in alphabetical order .
Pls give me the logic or simple example .
Joined: Jun 09, 2003
Jan 04, 2005 19:11:00
Joined: Aug 07, 2003
Jan 04, 2005 20:28:00
Or Arrays.sort(array). There's a version that takes a Comparator if you need to do case-insensitive sorting: Arrays.sort(array, String.CASE_INSENSITIVE_ORDER).
I agree. Here's the link:
subject: Sorting of string elements in alphabetical order
poll(),peek() in PriorityQueue class
Looping through HashMap
searching method for a Binary Search Tree
Question regarding Eclipse
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014