A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA/OCP Java SE 7 Programmer I & II Study Guide
this week in the
Joined: Feb 18, 2008
Feb 03, 2009 03:21:29
I need to Sort the
which is like "200036.918.104.22.168.16.1613454297". which have the number separated by the period(.).
And its Unique. Please give me some ideas..
Joined: Mar 22, 2005
Feb 03, 2009 03:26:29
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.
Ping & DNS
- my free Android networking tools app
Joined: Oct 02, 2003
Feb 03, 2009 06:26:40
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"?
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
I agree. Here's the link:
Jboss Experts - Bangalore
Parking the car....
Ant Build Successful but neither jar file nor build folder created ?
how can i insert a null value in a table
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014