Choosing the right Java collection
Interactive guide
by
(press space to begin)
Do you use primitive types like int or long?
Do you use primitive types like int or long?
Use Fastutil collections like: Int2IntMap
learn more on RebelLabs
Do you have duplicate keys?
Use Fastutil collections like IntArrayList
learn more on RebelLabs
What is more important fast contains / remove or the order of iteration?
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
Are you in a concurrent environment? Is thread safety an issue?
Do you need to query the key by the value?
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
Are you in a concurrent environment? Is thread safety an issue?
Iteration of sorted values or first in first out?
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
Use Maps.synchronizedMultiMap(new ArrayListMultimap())
learn more on RebelLabs
Use Guava ArrayListMultimap
learn more on RebelLabs
Are you in a concurrent environment? Is thread safety an issue?
Is the order of iteration important?
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
Use ConcurrentHashMap<Key Boolean> as a set
learn more on RebelLabs
Do you need access by the element index?
Are you in a concurrent environment? Is thread safety an issue?
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
Use Maps.synchronizedBiMap(new HashBiMap())
learn more on RebelLabs
First in first out or sorted by key?
Are you in a concurrent environment? Is thread safety an issue?
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
Are you in a concurrent environment? Is thread safety an issue?
Are you in a concurrent environment? Is thread safety an issue?
Use PriorityBlockingQueue
learn more on RebelLabs
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
Are you in a concurrent environment? Is thread safety an issue?
Are you in a concurrent environment? Is thread safety an issue?
Use ConcurrentHashMap
learn more on RebelLabs
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
Use CopyOnWriteArrayList
learn more on RebelLabs
Use ArrayBlockingQueue or check out JCTools library
learn more on RebelLabs
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
Collections.synchronizedMap(new LinkedHashMap())
learn more on RebelLabs
Use ConcurrentSkipListMap
learn more on RebelLabs
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!
404
Well, this is embarrassing, you've found our placeholder slide.
Here, use this link to solve the problem: fixme!