cscgal
The Queen of DaniWeb
19,425 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
A far easier implementation is as follows:
public static void sortEm(String[] array, int len)
{
java.util.Arrays.sort(array);
}
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
Why did you have to register? Guests have the ability to view code snippets and comments.
cscgal
The Queen of DaniWeb
19,425 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
java.util.Arrays.sort(array);
Yes, this sorts the contents of array. After this call the array is in sorted order, so you can just use it.
If you have more questions please start a new topic.
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
does this sorting method also capable in handling more than two arrays??
i guess it does you'd just have to call it twice, once for each array to sort. but please as said above:
If you have more questions please start a new topic.
DavidKroukamp
Practically a Master Poster
693 posts since Dec 2011
Reputation Points: 282
Solved Threads: 169