CSE 274: Data Structures - ArrayList and Collection Interfaces

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

1/14

flashcard set

Earn XP

Description and Tags

These flashcards cover key vocabulary and definitions related to the ArrayList and Collection data structures, focusing on their implementation and functionalities as discussed in the lecture.

Last updated 4:16 AM on 2/10/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

15 Terms

1
New cards

ArrayList

A resizable array implementation of the List interface that can grow and shrink dynamically.

2
New cards

FixedSizeArrayList

A fixed-size array implementation of the List interface that does not allow dynamic resizing.

3
New cards

Collection Interface

Represents a group of objects known as elements, with methods for adding, removing, and querying the collection.

4
New cards

List Interface

Extends the Collection interface to provide methods for accessing elements by their position in the list.

5
New cards

grow(int currentCapacity)

Method in ArrayList that expands the array size by 50% when the current size exceeds the current capacity.

6
New cards

System.arraycopy()

A method used to efficiently copy elements from one array to another, optimized for performance.

7
New cards

trimToSize()

A method in ArrayList that reduces the size of the underlying array to the current number of elements.

8
New cards

left shift (<<)

A bit-wise operation that multiplies a number by 2 for each position the bits are shifted to the left.

9
New cards

right shift (>>)

A bit-wise operation that divides a number by 2 for each position the bits are shifted to the right.

10
New cards

currentCapacity

The current length of the array or the capacity of the array in an ArrayList.

11
New cards

size()

Method that returns the number of elements currently held in a collection or list.

12
New cards

add(T): boolean

Method in Collection interface to add an element to the collection.

13
New cards

remove(T): boolean

Method in Collection interface to remove a specified element from the collection.

14
New cards

isEmpty(): boolean

Method in Collection interface that checks if the collection contains no elements.

15
New cards

clone()

Method that creates a copy of the array or the collection, returning a new instance.

Explore top notes

Explore top flashcards

flashcards
BIS Final Acronyms
40
Updated 836d ago
0.0(0)
flashcards
Filmgeschiedenis 2 (2022-2023)
134
Updated 1014d ago
0.0(0)
flashcards
Tema 2B: ¿Quién Soy Yo?
65
Updated 68d ago
0.0(0)
flashcards
civil war
25
Updated 1223d ago
0.0(0)
flashcards
Elbow and Forearm
54
Updated 734d ago
0.0(0)
flashcards
BIS Final Acronyms
40
Updated 836d ago
0.0(0)
flashcards
Filmgeschiedenis 2 (2022-2023)
134
Updated 1014d ago
0.0(0)
flashcards
Tema 2B: ¿Quién Soy Yo?
65
Updated 68d ago
0.0(0)
flashcards
civil war
25
Updated 1223d ago
0.0(0)
flashcards
Elbow and Forearm
54
Updated 734d ago
0.0(0)