ArrayList Methods
AP Computer Science A · Flashcards
AP COMPUTER SCIENCE A · FLASHCARDS
Card 1
of 30
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
Identify the method that removes the first occurrence of a specified element in an ArrayList.
QUESTION
What exception does the set method throw if the index is out of range?
QUESTION
Identify the method that removes an element at a specified index in an ArrayList.
Tap to flip before you grade
ANSWER
remove(int index). Removes by index and returns the removed element.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card