Question: 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
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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
