Java: How to find Unique Values in ArrayList (using TreeSet, HashSet) • Crunchify

This tutorial gives you simple way to find unique values in ArrayList using TreeSet and HashSet. HashSet is much faster than TreeSet (constant-time versus