Java LinkedList.pollLast()

Java LinkedList.pollLast() is a method in the Java LinkedList class that retrieves and removes the last element of the list, returning null if the list is empty. This method is commonly used in deque-based operations where elements are removed from the tail. Introduced in Java 1997 with Java 1.2, pollLast() is efficient for last-in-first-out (LIFO) manipulations.

https://docs.oracle.com/javase/8/docs/api/java/util/LinkedList.html