apcsa chapter 14

0.0(0)
Studied by 0 people
call kaiCall Kai
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 7:18 AM on 3/26/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

14 Terms

1
New cards

.add(int index, object obj)

adds (inserts) the object at a given index; void

2
New cards

.set(int index, object obj)

sets the list of elements at the index to the object and returns what is previously at the index; object

3
New cards

.get(int index)

get the object at the index; object

4
New cards

.remove(int index)

removes the object at that index and returns it; object

5
New cards

what package is the ArrayList class part of

java.util

6
New cards

how is arraylist different from arrays

it can change size as needed and element can be inserted or removed

7
New cards

code the instantiation of arraylist of card objects named cards

ArrayList cards = new ArrayList();

8
New cards

.add(Object obj)

adds the object to the end of the list; boolean

9
New cards

.size()

returns number of elements in the arraylist; int

10
New cards

what is List

an interface

11
New cards

define recursion

a method that calls itself

12
New cards

what is a method that calls itself called

recursion

13
New cards

what do all recursive methods require

an exit or base case that stops recursion

14
New cards

Still learning (4)

You've begun learning these terms. Keep up the good work!