Storing the value of one object in to the other
hashmap, java
Solution
Your problem is that you're adding char `' '`(which is converted to int 32) to store[i] which is int.
Use double quotes instead.
System.out.print(store[i] + " ");
Problem
I am trying the following code:- ``` HashMap<Integer,Integer[]> possibleSeq = new HashMap<Integer,Integer[] >(); possibleSeq.put(0,new Integer[]{1,4,5}); possibleSeq.put(1,new Integer[]{0,4,5,2,6}); Integer[] store = possibleSeq.get(0); for(int i=0;i<store.length;i++) { System.out.print(store[i] + ' '); } ``` Output is :- ``` 333637 ``` But since i am equating the value when key is 0 to the store variable,I intend to get `1 4 5` as an output.So i deduced `Integer[] store = possibleSeq.get(0);`this is not the proper way to store elements of `possibleSeq.get(0)` in store.So how should i do it??