Code example for SortedMap

Methods: getlastKey

0
        this.title = title;
    } 
 
    @Override 
    public int getLastContentId() { 
        return contents.get(contents.lastKey());
    } 
 
    @Override 
    public Timestamp getLastContentTimestamp() {
        return contents.lastKey();
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java