clone hashmap java code example
Example: hashmap clone
HashMap shallowCopy = // shallow copy implementation
assertThat(shallowCopy).isNotSameAs(map);
HashMap shallowCopy = // shallow copy implementation
assertThat(shallowCopy).isNotSameAs(map);