Unit 7: ArrayLists

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 23

24 Terms

1
ArrayList
A resizable array implementation of the List interface in Java that can store references to objects.
New cards
2
Capacity
The size of the internal array used by an ArrayList.
New cards
3
Size
The number of elements currently stored in an ArrayList.
New cards
4
Auto-boxing
The automatic conversion of primitive types to their corresponding wrapper classes when added to a collection like ArrayList.
New cards
5
Unboxing
The automatic conversion of wrapper class objects back into their corresponding primitive types.
New cards
6
IndexOutOfBoundsException
An exception that occurs when trying to access an index that is outside the range of valid indices for an ArrayList.
New cards
7
Sequential Search
A searching algorithm that looks for a target element by checking each element from the beginning until the target is found or the end is reached.
New cards
8
Selection Sort
A sorting algorithm that divides the array into a sorted and unsorted region and repeatedly selects the minimum from the unsorted region to add to the sorted region.
New cards
9
Insertion Sort
A sorting algorithm that builds a sorted section of the array by incrementally inserting elements from the unsorted section into their correct position.
New cards
10
Enhanced For Loop
A simpler way to iterate over elements in a collection without using an index.
New cards
11
get() Method
A method to retrieve the object located at a specified index in an ArrayList.
New cards
12
add() Method
A method used to add an element to the end of the ArrayList or at a specified position.
New cards
13
set() Method
A method to replace the element at a specified index in an ArrayList with a new element.
New cards
14
remove() Method
A method that removes the element at a specified index from the ArrayList.
New cards
15
while Loop Traversal
A method of traversing an ArrayList that can be used to safely remove elements while avoiding IndexOutOfBoundsException.
New cards
16
Reverse Loop Traversal
A method of traversing an ArrayList from the last index to the first to safely remove elements.
New cards
17
getOutliers Method
A method that identifies scores in an array that are significantly above or below the average.
New cards
18

add() Method Syntax

arrayList.add(element); or arrayList.add(index, element);

New cards
19

get() Method Syntax

arrayList.get(index);

New cards
20

set() Method Syntax

arrayList.set(index, element);

New cards
21

remove() Method Syntax

arrayList.remove(index);

New cards
22

Sequential Search

A searching algorithm that looks for a target element by checking each element from the beginning until the target is found or the end is reached.

New cards
23

Selection Sort

A sorting algorithm that divides the array into a sorted and unsorted region and repeatedly selects the minimum from the unsorted region to add to the sorted region.

New cards
24

Insertion Sort

A sorting algorithm that builds a sorted section of the array by incrementally inserting elements from the unsorted section into their correct position.

New cards

Explore top notes

note Note
studied byStudied by 21 people
912 days ago
5.0(1)
note Note
studied byStudied by 8 people
85 days ago
5.0(1)
note Note
studied byStudied by 423 people
1047 days ago
4.8(4)
note Note
studied byStudied by 2 people
58 days ago
5.0(1)
note Note
studied byStudied by 17 people
659 days ago
5.0(1)
note Note
studied byStudied by 10 people
826 days ago
5.0(1)
note Note
studied byStudied by 7 people
100 days ago
5.0(1)
note Note
studied byStudied by 17 people
65 days ago
5.0(1)

Explore top flashcards

flashcards Flashcard (110)
studied byStudied by 12 people
733 days ago
5.0(1)
flashcards Flashcard (60)
studied byStudied by 41 people
505 days ago
5.0(1)
flashcards Flashcard (21)
studied byStudied by 28 people
855 days ago
5.0(1)
flashcards Flashcard (23)
studied byStudied by 3 people
700 days ago
5.0(1)
flashcards Flashcard (37)
studied byStudied by 17 people
815 days ago
5.0(1)
flashcards Flashcard (28)
studied byStudied by 4 people
707 days ago
5.0(1)
flashcards Flashcard (43)
studied byStudied by 6 people
541 days ago
5.0(1)
flashcards Flashcard (84)
studied byStudied by 14 people
1 hour ago
5.0(1)
robot