Printing obects in hash

by rajesh 2009-12-30 17:20:00

Printing obects in hash

Enumeration keys = hash.keys();

while( keys.hasMoreElements() ) {
  Object key = keys.nextElement();
  Object value = hash.get(key);
System.out.println(value);
}


Tagged in:

859
like
0
dislike
0
mail
flag

You must LOGIN to add comments