I\'m just wondering how to check if TreeMap> contains a value in Java? For Example:
/*I have TreeMap> map with these element
public boolean valueExists(String value){ for(Map.Entry> entry : treeMap.entrySet()) { String key = entry.getKey(); ArrayList values = entry.getValue(); for (String str:values){ if (value.equals(str)){ return true; } } } return false; }