ArrayList methods

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

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:22 AM on 5/15/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

14 Terms

1
New cards

add(E e)

Element,boolean,adds element to end of list and true,nonstatic

2
New cards

add(int index, E element)

int,Element,void,adds element to index,nonstatic

3
New cards

clear()

none,void,clears all elements sizing to 0,nonstatic

4
New cards

clone()

none,Object,shallow copy of list,nonstatic

5
New cards

contains(Object o)

Object,boolean,if list contains the element,nonstatic

6
New cards

get(int index)

int,Element,the element at the index,nonstatic

7
New cards

indexOf(Object o)

Object,int,first index the element occurs,nonstatic

8
New cards

isEmpty()

none,boolean,if size is 0,nonstatic

9
New cards

lastIndexOf(Object o)

Object,int,last index the element occurs,nonstatic

10
New cards

remove(int index)

int,Element,the element that is removed from the list then shifts left,nonstatic

11
New cards

remove(Object o)

Object,boolean,if element was removed or not removes if possible,nonstatic

12
New cards

set(int index, E element)

int,Element,Element,the previous element at index then replaces with new,nonstatic

13
New cards

size()

none,int,number of elements in list,nonstatic

14
New cards

toArray()

none,Object[],an array of elements in right order,nonstatic