1. Engineering
  2. Computer Science
  3. javascript...

Question: javascript...

Question details
a. public static boolean palidrome(String myPString) i. Implement a function that can check whether or not the resulting word is a Palindrome. Such strings are the same when you write them backwards. For example: racecar. This word written in reverse is also racecar, thus, it is a palindrome. You must use a while loop to reverse your original string. The function returns true if the argument is a palindrome otherwise returns false. Use the Scanner class covered in lecture to get input from the user and pass that as a parameter to the method above. JAva Palin palin ii.
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution