Choosing the right Java collection
Interactive guide
by
(press space to begin)
Do you use primitive types like int or long?
Yes
No
Do you use primitive types like int or long?
Yes
No
Use Fastutil collections like: Int2IntMap
learn more on RebelLabs
Do you have duplicate keys?
Yes
No
Use Fastutil collections like IntArrayList
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!
Are you in a concurrent environment? Is thread safety an issue?
Yes
No
Do you need to query the key by the value?
Yes
No
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?
Yes
No
Iteration of sorted values or first in first out?
FIFO
Sorted
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?
Yes
No
Is the order of iteration important?
Yes
No
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?
Yes
No
Are you in a concurrent environment? Is thread safety an issue?
Yes
No
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
Are you in a concurrent environment? Is thread safety an issue?
Yes
No
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?
Yes
No
Are you in a concurrent environment? Is thread safety an issue?
Yes
No
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?
Yes
No
Are you in a concurrent environment? Is thread safety an issue?
Yes
No
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!
Choosing the right Java collection
Interactive guide
by
(press space to begin)