AP CSA Study Guide: Data Collections and Dynamic Arrays

0.0(0)
Studied by 0 people
0%Unit 4 Mastery
0%Exam Mastery
Build your Mastery score
multiple choiceMultiple Choice
call kaiCall Kai
Supplemental Materials
Card Sorting

1/26

Last updated 8:43 PM on 3/4/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

27 Terms

1
New cards

ArrayList

A resizable array that can store references to objects but not primitive data types.

2
New cards

Wrapper Classes

Classes that encapsulate primitive data types within objects, such as Integer and Double.

3
New cards

Integer

The wrapper class for the primitive type int.

4
New cards

Double

The wrapper class for the primitive type double.

5
New cards

Auto-boxing

The automatic conversion that the Java compiler makes between primitive types and their corresponding wrapper classes.

6
New cards

Unboxing

The conversion of a wrapper object back to its corresponding primitive type.

7
New cards

size()

A method that returns the number of elements in an ArrayList.

8
New cards

add(E obj)

Method that appends an object to the end of an ArrayList.

9
New cards

add(int index, E obj)

Inserts an object at the specified index in an ArrayList.

10
New cards

get(int index)

Method that retrieves the element at a specified position in an ArrayList.

11
New cards

set(int index, E obj)

Replaces the element at a specified index in an ArrayList with a new object.

12
New cards

remove(int index)

Method that removes the element at the specified index in an ArrayList.

13
New cards

IndexOutOfBoundsException

Exception thrown when trying to access an index that is out of range of an ArrayList.

14
New cards

for loop

A traditional loop used for iterating over an ArrayList with access to the index.

15
New cards

Enhanced for loop

A simplified way to iterate over an ArrayList without needing index access.

16
New cards

Linear Search

An algorithm for finding an element in an ArrayList by checking each element sequentially.

17
New cards

Traverse Backwards

A method for removing elements from an ArrayList by iterating from the end toward the beginning.

18
New cards

ConcurrentModificationException

Exception thrown when an ArrayList is modified while iterating over it using an enhanced for-loop.

19
New cards

Object Comparison

The practice of using .equals() instead of == for comparing objects to check for content equality.

20
New cards

Conditional Increment

A technique used in loops to avoid incrementing the index when an element is removed.

21
New cards

Generic Type Parameter

A placeholder used in ArrayLists to specify the type of elements they will hold.

22
New cards

void

A return type that indicates no value is returned from a method.

23
New cards

Deprecated

Refers to a method or feature that is no longer recommended for use and might be removed in future versions.

24
New cards

intValue()

Method that retrieves the primitive int value from an Integer object.

25
New cards

new Integer(int)

A constructor for creating an Integer object, though it's deprecated in newer versions of Java.

26
New cards

ArrayList

Syntax used to declare an ArrayList in Java, where E specifies the type of elements.

27
New cards

Shifting Indices

The process that occurs in an ArrayList when elements are added or removed, affecting the positions of subsequent elements.

Explore top flashcards

flashcards
faf
40
Updated 956d ago
0.0(0)
flashcards
faf
40
Updated 956d ago
0.0(0)