Code example for LinkedList

Methods: getLast

0
    public String get(String key) {
        LinkedList<String> result = keyTable.get(key.toLowerCase());
        if (result == null) {
            return null; 
        } 
        return result.getLast();
    } 
 
    /** 
     * Returns the number of keys stored in this header 
     * 
     * @return the number of keys. 
     */ 
    public int length() { 
        return props.size() / 2;
    } 
 
    /** 
     * Sets the status line in the header request example: GET / HTTP/1.1 
     * response example: HTTP/1.1 200 OK 
     *