HI All,
How i can sort the array list without use of sort () method in
the following example in java:
import java.util.Arrays;
public class JavaSortStringArray
{
public static void main(String[] args)
{
// create a String array
String[] fruits = {"banana", "orange", "kiwi", "apple"};
// sort the array, using the sort method of the Arrays class
Arrays.*sort*(fruits);
// print the sorted results
for (String fruit : fruits)
{
System.out.println(fruit);
}
}
}
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en