As shown in the figure, the java code should return hashmap,. Why did it return this?

    public HashMap getAllRPStatus() {
//        System.out.println("AllQueuessize======="+queueTable+"::::::::"+queueTable.size());
        return this.rpTable;
    } 
{105={409=0, 408=0, rp=60005, 405=0, 404=0, 407=0, 406=0, 410=0, 401=0, 403=0, 402=0}, 104={409=0, 408=0, rp=60004, 405=0, 404=3, 407=0, 406=0, 410=0, 401=3, 403=3, 402=3}, 103={409=0, 408=0, rp=60003, 405=0, 404=0, 407=0, 406=0, 410=0, 401=0, 403=0, 402=0}, 102={409=1, 408=0, rp=60002, 405=1, 404=0, 407=0, 406=0, 410=0:0:9, 401=11, 403=3, 402=0}, 101={409=0, 408=0, rp=60001, 405=0, 404=0, 407=0, 406=0, 410=0, 401=11, 403=11, 402=0}}
Dec.01,2021

you should print out the object directly. Look at the source code of HashMap

.

clipboard.png

Menu