aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes general doubt? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "general doubt?" Watch "general doubt?" New topic
Author

general doubt?

gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 923
    
    1

is this is the right order. refer http://suhrid.net/wiki/index.php?title=Collections

String natural sort order is lexicographical (Dictionary Sort)
Strings starting with:
Numbers sort first.
Then spaces
Followed by upper case
Followed by lower case.


OCPJP 6(100 %) OCEWCD 6(91 %) OCPJBCD(93%)
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

why not test it?


before sort:
[1234, 12, 9, abcd, ABCD, abc]
after sort:
[ abc, 12, 1234, 9, ABCD, abcd]
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1164
Right, according to the ASCII characters 0 to 127 or more generally based on the Unicode order.

Regards,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: general doubt?
 
Similar Threads
doubt in Mikalai notes in overiding deployment descriptor
Collections - sort
Help needing in using Comparator to sort BY multiple elements in ArrayList
Sorting
java.io.File problem