Code example for ConcurrentMap

Methods: keySet

0
            throw new IllegalArgumentException(word + " already exists.");
        } 
    } 
 
    public Set<String> getAllWords() {
        return dict.keySet();
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java