Suppose ArrayList x contains two strings [Beijing, Singapore]. Which of the following method will cause the list to become [Beijing]?

Suppose ArrayList x contains two strings [Beijing, Singapore]. Which of the following method will cause the list to become [Beijing]?


A. x.remove("Singapore")
B. x.remove(0)
C. x.remove(1)
D. x.remove(2)

The correct answer is AC


Java

Learn More Multiple Choice Question :