Is there a way to copy a TreeSet? That is, is it possible to go
TreeSet
Set itemList; Set tempList; tempList = itemList; <
Set itemList; Set tempList; tempList = itemList;
Java 8+:
Set copy = new HashSet<>(mySet);