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 |
|
---|
2 | package org.greenstone.gsdl3.util;
|
---|
3 |
|
---|
4 |
|
---|
5 | import java.util.HashMap;
|
---|
6 | import java.util.Set;
|
---|
7 | import java.util.Map;
|
---|
8 | import java.util.Iterator;
|
---|
9 |
|
---|
10 |
|
---|
11 | /** contains miscellaneous functions */
|
---|
12 | public 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.