Unit 7: ArrayList

0.0(1)
studied byStudied by 30 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/14

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

15 Terms

1
New cards

limitation of arrays

it has a fixed length, and can only store, one specific type of data.

2
New cards

NullPointerException

Extra spaces will simply be ignored, and once you reach one it will result in a

3
New cards

ArrayList

is a solution for this issue.

4
New cards

ArrayList object

is dynamically sized

5
New cards

dynamically sized

it can become smaller or larger as elements are added or removed.

6
New cards

typed ArrayList

ArrayLists are very adaptable, so if you need to make an ArrayList set to a specific type, you set it up as

7
New cards

Integer and Double objects

can be created with integers and doubles, as parameters.

8
New cards

Integer class

The static variables of MIN_VALUE, and MAX_VALUE found in the

9
New cards

Elements

can be accessed with index notation.

10
New cards

Give example of methods used to access ArrayList.

myList.get(2), myList.add(“Bob”)

11
New cards

static variables

it store the minimum and maximum values of an integer.

12
New cards

int and double

The primitive data types that can’t be stored in ArrayLists.

13
New cards

Parameters

Integer and Double objects can be created with integers and doubles

14
New cards

Integer n

new Integer (5);

15
New cards

Double x

new Double (6.1);