Question: Palindrome is a string which is spelled the same way forwards and backwards (Example: abba). Write a program that will check if a given string
Palindrome is a string which is spelled the same way forwards and backwards (Example: abba). Write a program that will check if a given string is a palindrome. Test your program with the following strings "amanaplanacanalpanama'" . "cattac" . "radars" Requirements: .Do not use recursion onor w)and te source files. where specified without modifying the given program. import java.util.Scanner public class Palindrome public static void main(String [] args) System.out,printC"Enter a String to check if it is a palindrome : "); Scanner input = new Scanner(System.in)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
