ArrayList Class Flashcards

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/5

flashcard set

Earn XP

Description and Tags

AP CSA

Last updated 5:49 PM on 2/16/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

6 Terms

1
New cards

int size()

Returns the number of elements in the list.

2
New cards

boolean add(E obj)

Appends obj to the end of the list; always returns true.

3
New cards

void add(int index, E obj)

Inserts obj at index. Shifts existing elements to the right.

4
New cards

E get(int index)

Returns the element at the specified index.

5
New cards

E set(int index)

Replaces the element at index with obj. Returns the old element.

6
New cards

E remove(int index)

Removes the element at index. Shifts elements to the left. Returns the removed element.