Set<String> set = new HashSet<String>(); Set<String> setCopy = new HashSet<String>(); setCopy.addAll(set);