public static <T> T lastRecursive(List<T> elements) {
        if (elements == null || elements.isEmpty()) {
            throw new NoSuchElementException();
        }
        if (elements.size() == 1) {
            return elements.get(0);
        }
        return lastRecursive(elements.subList(1, elements.size()));
    }
(*) 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