4-Linked Lists/07. Linked List Problems_/JavaLinkedListDataStructures/JavaLinkedListDataStructures/LinkedList.java
public T popElement() {
        if (head != null) {
            T topElement = head.getData();

            head = head.getNext();

            return topElement;
        }

        return null;
    }
/**
     * Return the first element in the linked list.
     */
Return the first element in the linked list.
Return the first element in the linked list .
public T popElement() {
        if (head != null) {
            T topElement = head.getData();
            head = head.getNext();
            return topElement;
        }
        return null;
    }
public T popElement ( ) { if ( head != null ) { T topElement = head . getData ( ) ; head = head . getNext ( ) ; return topElement ; } return null ; }
Return the first element in the linked list.
Return the first element in the linked list .