PROMANIAC
Monday, 28 May 2012
Program in java to sort array of strings
import java.util.Arrays;
class SortString
{
public static void main(String args[])
{
String[] names = {"Zoe", "Alison", "David"};
Arrays.sort(names);
System.out.println(Arrays.toString(names));
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment