J
joez3
Hi,
Can someone help me out? I am trying to create a hashtable where the
values are arrays. So in my code I have:
Hashtable moves = new Hashtable();
moves.put (11, new Integer[]{2,3,3,2});
moves.put (21, new Integer[]{1,3,3,3});
Now how do I access the items in the array? When I do:
System.out.println("\n :"+moves.get(11)+": \n");
I get something like:
:[Ljava.lang.Integer;@10b62c9:
Is this a pointer to the array? How can I access each item in the
array?
Thanks,
Zim
Can someone help me out? I am trying to create a hashtable where the
values are arrays. So in my code I have:
Hashtable moves = new Hashtable();
moves.put (11, new Integer[]{2,3,3,2});
moves.put (21, new Integer[]{1,3,3,3});
Now how do I access the items in the array? When I do:
System.out.println("\n :"+moves.get(11)+": \n");
I get something like:
:[Ljava.lang.Integer;@10b62c9:
Is this a pointer to the array? How can I access each item in the
array?
Thanks,
Zim