Question PRG-JAVA-0067
HardWhat is the output of this program?
public class Main {
public static void main(String[] args) {
java.util.List<Integer> list = new java.util.ArrayList<>(java.util.List.of(10, 20, 30));
list.remove(Integer.valueOf(10));
list.remove(0);
System.out.println(list);
}
}
- A.
[]
- B.
[30]
- C.
Sign up free to see the answer and a step-by-step explanation.