A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
Sorting
Chiranjeevi Kanthraj
Ranch Hand
Joined: Feb 18, 2008
Posts: 283
I like...
posted
Feb 03, 2009 03:21:29
0
Hi all
I need to Sort the
String
which is like "200036.9116.2.5.1.16.1613454297". which have the number separated by the period(.).
And its Unique. Please give me some ideas..
-Chiru
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35438
9
posted
Feb 03, 2009 03:26:29
0
What does it mean to sort a string? What would this particular string look like after "sorting"?
You can obtain a list of all substrings using a String.split("\\.") method call.
Android apps
–
ImageJ plugins
–
Java web charts
fred rosenberger
lowercase baba
Bartender
Joined: Oct 02, 2003
Posts: 10040
6
I like...
posted
Feb 03, 2009 06:26:40
0
do you want to take a single string, break out the parts, and sort those?
or will you have dozens of strings like this, and you want to sort all of those based on various fields within the string?
and what do you mean by "it's unique"?
Never ascribe to malice that which can be adequately explained by stupidity.
I agree. Here's the link:
http://aspose.com/file-tools
subject: Sorting
Similar Threads
Parking the car....
Jboss Experts - Bangalore
how can i insert a null value in a table
Ant Build Successful but neither jar file nor build folder created ?
Websphere docs
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter