Java Collections & Data Structures Flashcards

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/12

flashcard set

Earn XP

Description and Tags

Flashcards for Java Collections and Data Structures

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

13 Terms

1
New cards

List

Ordered collection, allows duplicates

2
New cards

Set

No duplicates

3
New cards

Map

Stores key -> value pairs

4
New cards

Stack

LIFO (Last In, First Out)

5
New cards

Queue

FIFO (First In, First Out)

6
New cards

HashMap put()

Method to add a key-value pair to a HashMap

7
New cards

HashMap get()

Method to retrieve a value from a HashMap using its key

8
New cards

HashSet

Ignores duplicate elements

9
New cards

TreeMap

Keeps keys sorted

10
New cards

PriorityQueue

Orders elements with the smallest element first

11
New cards

Iterator

Traverse & modify collections

12
New cards

Balanced parentheses strategy

Use Stack to match opening and closing parentheses

13
New cards

Backtracking maze order

West -> South -> East -> North