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