In java without Arrays and only using String Methods (Don't use Stringbuilder or Stringbuffer) // Question 18a: Write the method below that tests // whether a word is a palindrome (the same when read // forward or back, such as "madam"). Test isPalindrome // using the appropriately modified StringTest program public static boolean isPalindrome(String dateStr) { } // Question 18b: Upgrade isPalindrome so that it can handle // any phrase (as in, "Madam, I'm Adam"). Copy the logic of // isPalindrome into isPalindromePhrase below to start. // // In testing for a palindrome, disregard all spaces, punctuation // marks, apostrophes, and other non-alphanumeric characters // and consider upper and lower case characters the same. Do not // count an empty string as a palindrome. // Hint: recall that the character class has static methods: // - boolean isLetterOrDigit(ch) // - char toUpperCase(ch) public static boolean isPalindromePhrase(String dateStr) { }
Oh no! Our experts couldn't answer your question.
Don't worry! We won't leave you hanging. Plus, we're giving you back one question for the inconvenience.
In java without Arrays and only using String Methods (Don't use Stringbuilder or Stringbuffer)
// Question 18a: Write the method below that tests
// whether a word is a palindrome (the same when read
// forward or back, such as "madam"). Test isPalindrome
// using the appropriately modified StringTest program
public static boolean isPalindrome(String dateStr) {
}
// Question 18b: Upgrade isPalindrome so that it can handle
// any phrase (as in, "Madam, I'm Adam"). Copy the logic of
// isPalindrome into isPalindromePhrase below to start.
//
// In testing for a palindrome, disregard all spaces, punctuation
// marks, apostrophes, and other non-alphanumeric characters
// and consider upper and lower case characters the same. Do not
// count an empty string as a palindrome.
// Hint: recall that the character class has static methods:
// - boolean isLetterOrDigit(ch)
// - char toUpperCase(ch)
public static boolean isPalindromePhrase(String dateStr)
{
}
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)