What is the printout of the following code? List list…
What is the printout of the following code? List list = new ArrayList(); list.add(“A”); list.add(“B”); list.add(“C”); list.add(“D”); for (int i = 0; i < list.size(); i++) System.out.print(list.remove(i));