Write an application class (ArrayListApplication) that contains a main(...) method. The method must perform the following. • Prompt user for 10 names and store in an \"ArrayList\" object • Shuffle the names using \"shuffle\"\" method of the \"Collections\" class • Display the smallest element in the collection use the \"Collections.min\" method. • Display the largest element in the collection use the \"Collections.max\" method. Solution import java.util.*; public class ArrayListNames { publicstaticvoid main(String[] args) { int i; ArrayList<String> name = new ArrayList<String>(); System.out.println(\"Enter 10 Names \"); for( i=0; i<10; i++ ) { Scanner s =newScanner(System.in); name add(s.next()); } System.out.println(\"Initial collection : \"+name); // shuffle the list Collections.shuffle(name); System.out.println(\"Final collection after shuffle: \"+name); Object minimum = Collections.min(name); System.out.println(\"Minimum Element of ArrayList name is : \" + minimum); Object maximum = Collections.max(name); System.out.println(\"Maximum Element of ArrayList name is : \" + maximum); } } .