Case insensitive string as HashMap key

Map<String, String> nodeMap = 
    new TreeMap<>(String.CASE_INSENSITIVE_ORDER);

That’s really all you need.

Leave a Comment