Question: please write this by JAVA Write a program to determine if an input string is or is not a palindrome. A Palindrome is a string
please write this by JAVA 


Write a program to determine if an input string is or is not a palindrome. A Palindrome is a string that reads the same when read forward or backward, excluding punctuation and spaces. For example, the following are classified as palindromes Madam, I'm Adam Go deliver a dare, vile dog! Campus motto: "Bottoms up, Mac." Dennis and Edna sinned 1101011 Here is the main method for this assignment public static void main( String args) System.out.print( "Enter a palindrome to test: "i Scanner console new Scanner( System.in ); String instr = console.nextLine(); if ( isaPalindrome( instr )) System.out.printf ( "The input string, inStr; %s, is a palindrome . ", reverseStr( instr // must be recursive! System.out.println( else System.out.printf ( "The input string, inStr ) %s, is not a palindrome
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
