Skip to main content

Practice · 3 of 4

Master MCQ

CHALLENGE
Difficulty: advanced+25 XP

What is printed? ``java ArrayList<Integer> list = new ArrayList<Integer>(); list.add(5); list.add(15); list.add(25); for (int i = list.size() - 1; i >= 0; i--) { if (list.get(i) > 10) { list.remove(i); } } System.out.print(list); ` A. [5] B. [5, 15] C. []` D. ConcurrentModificationException Print the letter, then your one-sentence justification.

Back to lesson: Practice: Master simulation: MCQ section