public static <T> T last(LinkedList<T> elements) {
        return elements.getLast();
    }
(*) Find the last element of a list.
<p>
Check P01Test class for test cases related to this problem.
java8/src/main/java/com/shekhargulati/ninetynine_problems/_01_lists/P01.java