2019.4.19 private void rehash(){ Set<Entry<K, V>> set = entrySet(); capacity <<= 1; table = new Entry[capacity]; size = 0; for(Entry<K, V> entry: set){ put(entry.getKey(), entry.getValue()); } }