ArrayList al = new ArrayList(); al.add("A"); al.add("B");  System.out.println(al.get(0)); System.out.println(al.get(1));  for(int i=0; i