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

JAVASCRIPT  JAVASCRIPT a. public static boolean palidrome(String myPString) i. Implement a function

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

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!