String () { StringBuilder sb = new StringBuilder(); sb.append("[\n"); for (Map.Entry<K, V> entry : myMap.entrySet()) { sb.append(" ").append(entry.getKey()).append(": ").append(entry.getValue()).append(",\n"); } sb.append("]"); return sb.toString(); }