Professional Documents
Culture Documents
Richard Warburton
JAVA CHAMPION, AUTHOR AND PROGRAMMER
@richardwarburto www.monotonic.co.uk
Project & Array Problem
Introduction & Course Outline
Implementing Data
Structures Is Hard!
Data Structures Are Diverse
Ordering
Pairs
Uniqueness
Course Outline
Introduction to
Java Streams
Collections
Map
SortedMap
SortedSet Deque
Collection Design
Interfaces Implementation
Map
HashMap
List Set Queue
ArrayList
HashSet PriorityQueue
LinkedList
SortedMap
TreeMap
SortedSet Deque
LinkedList
TreeSet
ArrayDeque
Elements
Set are keyed? Map
Order is Order is
important? Elements important?
must be
unique?
SortedSet SortedMap
Insertion
order
List matters? Deque
Collection Behaviors
Iterable
Iterator
Collection
size() t Get the number of elements in the
collection
clear()
t Remove all elements from this collection
Java Collections are useful and versatile
Summary
There’s a collection of collections