@Override public HashTable clone() { try { HashTable result = (HashTable) super.clone(); result.buckets = new Entry[buckets.length]; for (int i = 0; i < buckets.length; i++) { if (buckets[i] != null) result.buckets[i] = buckets[i].deepCopy2(); } return result; } catch (CloneNotSupportedException e) { throw new AssertionError(); } }