The question sounds a bit weird but I can explain it: I have a HashMap filled with Strings as keys and values. And I have a String. Now I want to do something like that:
if(myhashmap.containskey(ANY PART OF MY STRING)
Like:
String str = "Java is cool!";
[HashMap that contains following : "Java";
I want that I can check if a String contains something. Maybe I could do that with a for loop but there is nothing like hashmap.entry. What would you do?