convert hashset to arraylist in java code example Example: convert array list to Hashset Set<Integer> set = new HashSet<Integer>(arrayList);