- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
//...
Hashtable somehash = new Hashtable();
//...
public String keyByValue (String value) {
String s;
while (somehash.elements().hasMoreElements()) {
s = (String) somehash.elements().nextElement(); //!!!
if (s.equals(value)) { //!!!
return s;
}
}
return null;
}