Java snippets of the day
Palindrome test import java.util.Scanner; public class PalindromeTest { static boolean isPalindrome(String source) { // Trivial case if (source == null) return false; // We ignore case when checking for palidrome String toTest = source.toLowerCase(); // We start at the two…