public static <T> boolean isPalindrome(List<T> list) {
        List<T> original = new ArrayList<>(list);
        P05.reverse(list);
        return Objects.equals(list, original);
    }
Find out whether a list is a palindrome.
java8/src/main/java/com/shekhargulati/ninetynine_problems/_01_lists/P06.java