import java.util.*; class JavaSort2 // Java's sort on a random array of Strings { public static void main(String[] args) throws Exception { Scanner input = new Scanner(System.in); System.out.print("Enter the number of words: "); int num = input.nextInt(); String[] a = new String[num]; for(int i=0; i