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

a. x.add("Chicago")
b. x.add(0, "Chicago")
c. x.add(1, "Chicago")
d. x.add(2, "Chicago")

c. x.add(1, "Chicago")

Computer Science & Information Technology

You might also like to view...

In Excel, date and time data are special forms of numeric data

Indicate whether the statement is true or false.

Computer Science & Information Technology

The ____________________ buttons allow you to display the document in Print Layout, Read Mode, Web Layout, Outline, or Draft view.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology