/* Complete the output when the T06Q3() method is executed? */ import java.util.*; public class T06Q3 { public static void main (String[] args) { T06Q3(); } private static void T06Q3() { List theAList = new ArrayList(); System.out.println("1. theAList " + theAList); theAList.add(new String("computer")); System.out.println("2. theAList " + theAList); theAList.add(new String("science")); System.out.println("3. theAList " + theAList); theAList.add(new String("rock")); System.out.println("4. theAList " + theAList); theAList.add(1,new String("and")); System.out.println("5. theAList "+theAList); theAList.remove(1); if (theAList.contains(new String("rock"))) System.out.println("6. contains rock "); System.out.println("7. theAList " + theAList); System.out.println("8. theAList.isEmpty() " + theAList.isEmpty()); theAList.set(1, new String("so")); System.out.println("9. theAList.get(2) " + theAList.get(2)); Iterator it = theAList.iterator(); while (it.hasNext()) { System.out.println(it.next().toUpperCase()); } theAList.clear(); System.out.println("10. theAList " + theAList); } }