Code example for LinkedList

Methods: getLast, isEmpty

0
        } 
        return stack.removeLast();
    } 
 
    public Entry peek() { 
        if (stack.isEmpty()) {
            return null; 
        } 
        return stack.getLast();
    } 
 
    public boolean isEmpty() { 
        return stack.isEmpty();
    } 
 
    public int size() { 
        return stack.size();
    } 
 
    public Entry get(int index) {
        return stack.get(index);