Question: Assume that aList is a valid ArrayList containing the following: Wei, Marila, Anna, Neal, Rachel, Jack, Aneesh Which of the following does not remove Anna
Assume that aList is a valid ArrayList containing the following:
Wei, Marila, Anna, Neal, Rachel, Jack, Aneesh
Which of the following does not remove Anna from aList?
- aList.remove("Anna", 3);
- aList.remove(2, "Anna");
- aList.remove(2);
| a | Statement I only |
| b | Statement II only |
| c | Statement III only |
| d | Statements I and II only |
| e | Statements II and III only |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
