I\'m just wondering how to check if TreeMap> contains a value in Java? For Example:
/*I have TreeMap> map with these element
You're testing to see whether the map contains a String, "square"-- but the values in your map are ArrayList
If you know that you're looking for a shape, you can first get the "shape" list, and test to see whether it contains the specific shape "square".
ArrayList shapes = map.get("shape");
boolean containsSquare = shapes.contains("square");