Solved

Write a Method Called IsPalindrome That Accepts a String as a Parameter

Question 37

Short Answer

Write a method called isPalindrome that accepts a String as a parameter and returns true if the String is a palindrome, and false otherwise. You may assume that the entered String consists entirely of lowercase letters (meaning it contains no numbers, spaces, punctuation, etc). Hint: write code that creates a new string that is the original string reversed, and then check to see if the two strings are equal.

Correct Answer:

verifed

Verified

public boolean isPalindrome(St...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions