I'm trying to print a hashtable content, that hashtable contains a map inside it, the table is declared just like this:
Map<String, Map<String,Integer>> mapSD = new HashMap<String, Map<String, Integer>>();
I'm using the next line to print its content, that works for normal (not nested) hashmap, and it's doing something weird with this nested hashmap:
System.out.println("\n"+mapSD.toString());
EDIT: Just in case it isn't clear enough, I need to print the content in the "{A{BE=2,XD=5}}" way , the toString method do this in not nested maps or hashtables, it works in normal tables, but is overwritting the console output with this nested table.
EDIT 2: The printing should print something like {A{RT=5,CS=3}}, that is, a table of tables. It prints it, but then prints another line over the same line, creating an unreadable mix of characters. I'm using Eclipse Mars.2 IDE, maybe there's something to do with the problem.
Any idea of how to fix this? Thanks in advance.