row column as hashmap key

I am new to creating a hashmap. I need to use the row and col value for my key (0,1 - 63,127). Can someone tell me the best way to do this. Thanks!
[154 byte] By [yawaliasa] at [2007-11-27 2:39:34]
# 1
kindly elaborate
rdeea at 2007-7-12 3:01:40 > top of Java-index,Core,Core APIs...
# 2

Create a class which contains your row and column and/or whatever else you want to use as a key, and override the hashCode() and equals() methods accordingly so that equal keys return equal hashcodes from the hashCode() method and 'true' from the equals() method, and unequal keys the converse.

ejpa at 2007-7-12 3:01:41 > top of Java-index,Core,Core APIs...
# 3

HashMap hm = new HashMap();

hm.put(key, value);

Set se = hm.entrySet();

for (Iterator i = se.iterator(); i.hasNext();)

{

Map.Entry me = (Map.Entry)i.next();

Object ok = me.getKey();

Object ov = me.getValue();

System.out.print(ok+"\n");

System.out.print(ov + "\n");

}

raga8586a at 2007-7-12 3:01:41 > top of Java-index,Core,Core APIs...