Answer:
The add method can be used to add "chicago" to the list at index 1. The code would look like:
x.add(1, "chicago");
After this is executed, the list x will contain [beijing, chicago, singapore].
9.4m questions
12.2m answers