What is the easiest way to get String
Key
from HashMap
that contains some String fragment? Is true that only way is enumerate all keys and do substring()
?
This pseudo code gets exact string, and I need string that only contains fragment.
Map hm= new HashMap();
...
res = hm.get("blabla");
I need to use java 1.4