Consider the following declaration for an ArrayList:
ArrayList list = new ArrayList();
After values have been added to the array, the following segment processes the ArrayList:
list.add(list.get(0));
list.remove(0);
Which of the following best describes what this segment does?
a Move the first String in the ArrayList to the end of the ArrayList.
b Adds the last letter in the String onto the beginning.
c Removes the first letter in each String in the ArrayList.
d Adds the first letter in the String onto the end.
e Does not change the Strings in the ArrayList.



Answer :

Other Questions