Question: java code for this? A palindrome is a word or a phrase that is the same when read both forward and backward. Examples are: bob,
java code for this?
A palindrome is a word or a phrase that is the same when read both forward and backward. Examples are: "bob," "sees," or "never odd or even" (ignoring spaces). Write (define) a public static method named isPalindrome, that takes one String argument. When this method is called, it should return a boolean value. The method should return true if the argument String is a palindrome, other wise it should return false. All spaces should be ignored in making the decision to return either true or false. Examples: isPalindrome("bob") will return true isPalindrome("Bob") will return false
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
