Code example for SortedMap

Methods: containsKey

//        locations.add("/usr/lib/josm/"); 
//        return locations; 
//    } 
    synchronized public boolean hasKey(final String key) {
        return properties.containsKey(key);
     * Get settings value for a certain key. 
     * @param key the identifier for the setting 
     * @return "" if there is nothing set for the preference key, 
     *  the corresponding value otherwise. The result is not null. 
    synchronized public String get(final String key) {
        putDefault(key, null);
        if (!properties.containsKey(key))
            return ""; 
        return properties.get(key);
Contextual code suggestions in your IDE  Get Codota for Java