Q:

int[] stored into an object in Java

I have a scenario where a value is declared as 
 int[] rate = new int[] {5,6};
 int length = 26;

some processing is done and this is stored into a HashMap<String,Object> , so the HashMap contains
"rate" ==> {5,6}
"length" ==> 26

when I retrieve this for "key length" I am able to see the corresponding values but not for the "key rate" , is there a correct way for retrieving the values of rate too?
when I try System.out.print I cannot see legible values. 

A:

Since rate is an Array, you'll have to use Arrays.toString(rate) to see its string representation.
The illegible values you see is the default toString() implementation for arrays. It's usually the Classname@hashCode

