source: trunk/gsdl3/src/java/org/greenstone/gsdl3/util/Misc.java@ 4101

Last change on this file since 4101 was 4101, checked in by kjdon, 21 years ago

some miscellaneous functions

  • Property svn:keywords set to Author Date Id Revision
File size: 565 bytes
Line 
1
2package org.greenstone.gsdl3.util;
3
4
5import java.util.HashMap;
6import java.util.Set;
7import java.util.Map;
8import java.util.Iterator;
9
10
11/** contains miscellaneous functions */
12public class Misc {
13
14 public static void printHash(HashMap map) {
15 System.out.println("Map entries are :");
16 Set entries = map.entrySet();
17 Iterator i = entries.iterator();
18 while (i.hasNext()) {
19 Map.Entry m = (Map.Entry)i.next();
20 String name = (String)m.getKey();
21 String value = (String)m.getValue();
22 System.out.println(name+"="+value);
23 }
24 }
25
26
27}
Note: See TracBrowser for help on using the repository browser.