A palindrome is a string that is the same spelled forward as it is spelled backward. So, "abcba" is a palindrome, as are "eye" and "madam".

Complete the PalFind program below so that it reads in a string of characters, checks character-by-character to see whether or not the string is a palindrome, and then prints either "Yes" or "No".

In other words, if the input string is "abba" or "wallow", the output would be "Yes".
If the input string is "FBI" or "garbage", the output would be "No".

You may ignore punctuation, in that the test strings used for this program do not contain any. You may also modify the whole string to all uppercase or all lowercase before you begin the check.

Note: The strings may be of odd or even length, as in "cat", "dad", "racecar", or "Hannah".

Complete the following file:


import java.util.Scanner; /** Reads a string, checks to see if it is a palindrome, and prints "Yes" or "No", accordingly. Input: the value of s, a string Output: "Yes" or "No" */ public class PalFind { public static void main(String[] args) { // Read string and convert to lowercase Scanner in = new Scanner(System.in); String ins = in.nextLine(); // your work here } }