here is my attempt
public class blah {
HashSet<something> blah;
public Blah() {
this.blah = new HashSet<something>(); //this is empty constructor of something
}
// I want to copy all the element of Public blah in new Blah
public Blah(Blah initialBlah) {
initialBlah = new Blah();
// MAKE DEEP COPIES HERE
for (something c : blah){
initialBlah.add(c);
}
}
I tried that but is not right HashSet newBlah = new HashSet();