import java.util.*; class JavaSort8 // Java's sort on a random ArrayList of strings // Timed but not printed { public static void main(String[] args) throws Exception { Random rand = new Random(); long time1,time2; Scanner input = new Scanner(System.in); System.out.print("Enter the number of words: "); int num = input.nextInt(); ArrayList a = new ArrayList(); for(int i=0; i