FileDocCategorySizeDatePackage
SortArray.javaAPI DocExample336Sat Aug 07 20:48:04 BST 1999None

SortArray

public class SortArray extends Object
Demonstrate use of Arrays.sort()
version
$id$

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] unused)

		String[] strings = {
			"painful", 
			"mainly",
			"gaining",
			"raindrops"
		};
		Arrays.sort(strings);
		for (int i=0; i<strings.length; i++)
			System.out.println(strings[i]);