I'm just wondering how to check if TreeMap> contains a value in Java? For Example:
/*I have TreeMap<String,ArrayList<String>> map with these elements
 * {color = ["red","blue","green"], shape=["square", "circle"]}
 */
 System.out.println(map.containsValue("square")); //This return false
 System.out.println(map.values().contains("square")); //This return false also
I always get false when I use containsValue() or contains() method. Anybody know why and can give me suggestions, please?
Thanks Ed
 
     
     
    