Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

MUST BE JAVA: Implement a method, public static boolean isPalindrome(String) to

ID: 3750397 • Letter: M

Question

MUST BE JAVA: Implement a method, public static boolean isPalindrome(String) to determine whether the specified String is a palindrome or not. A palindrome is a phrase that reads the same forwardand backward; not including punctuation, spaces, or letter case. Some example palindromes include:

I have a code so far that can find palindromes that are singular words, but it cannot account for whitespaces in strings and punctuation. For example "Taco Cat" and "Was it a car or a cat i saw?" should both count as palindromes. I want to be able to filter out those unwanted characters such as whitespaces and punctuation. Here is the code i have so far that does not account for whitepspaces and punctuation:

Also, please try to complete this without using linked lists or stacks

(the empty string) ·Taco cat » Was it a car or a cat I saw?

Explanation / Answer

public static boolean isPalindrome(String s) { String modified = ""; char ch; for(int i = 0; i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote