This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "general doubt?" Watch "general doubt?" New topic

general doubt?

gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 924

is this is the right order. refer

String natural sort order is lexicographical (Dictionary Sort)
Strings starting with:
Numbers sort first.
Then spaces
Followed by upper case
Followed by lower case.
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: 1183
Right, according to the ASCII characters 0 to 127 or more generally based on the Unicode order.


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: general doubt?
It's not a secret anymore!