I want to be able to (pretty-)print the contents of my maps.
They should have newlines and indentation rather than on a single line; ignoring the toString methods of
I am not 100% sure, might be is this what you are looking for and which you called pretty printing -
Map map = new HashMap(); ... for(Map.Entry entry: map.entrySet()){ System.out.println(entry.getKey()+" - "+ entry.getValue()); }