Hi, I have a HashMap copied from another HashMap, but I want to change the values only in one of them.
HashMap hm1 = new HashMap();
HashMap hm2 = new HashMap();
hm2 = hm1;
Now both hm1 and hm2 has "orange" under fruit key, but I want only hm1 updated. Is a deep copy the only solution?
Thanks in advance.