MCPcopy
hub / github.com/careercup/ctci / debugPrintHash

Method debugPrintHash

java/Chapter 8/Question8_10/Hash.java:49–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 }
48
49 public void debugPrintHash() {
50 for (int i = 0; i < items.length; i++) {
51 System.out.print(i + ": ");
52 LinkedList<Cell<K, V>> list = items[i];
53 if (list != null) {
54 for (Cell<K, V> cell : list) {
55 System.out.print(cell.toString() + ", ");
56 }
57 }
58 System.out.println("");
59 }
60 }
61}

Callers 1

mainMethod · 0.95

Calls 2

printMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected