Question: Description In a java program, write a method called isPalindrome() that accepts a String parameter and returns a Boolean. This method should check if the

Description In a java program, write a method called isPalindrome() that accepts a String parameter and returns a Boolean. This method should check if the String is a Palindrome and return an appropriate boolean value. Your method should work irrespective of case. In the main method, you should call the method with a user inputted String being passed into isPalindrome().

Sample Input 1 NaVAn

Sample Output 1 NAVAN is a Palindrome

Sample Input 2 Cavan

Sample Output 2 Cavan is NOT a Palindrome

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!