Question: Java Programing For this week's lab we will be creating two separate methods to detect if a user entered string is a palindrome. The first

 Java Programing For this week's lab we will be creating two

Java Programing

For this week's lab we will be creating two separate methods to detect if a user entered string is a palindrome. The first method should ONLY use the string class and/or character class and should compare one character at a time working from the outside in. The second method should use the StringBuilder class and can use any method of that class. Tier 4: Check only single words to determine if they are a palindrome (assume all words are lower case) mom WOW madam dad hannah racecar Tier 3: Check multiple-word phrases to determine if they are a palindrome (assume all words are lower case) madam im adam a car a man a maraca im a lasagna hog go hang a salami Tier 2: Check multiple-word phrases to determine if they are a palindrome. Assume words are both upper and lower case and disregard all punctuation. Madam I'm Adam Acar, a man, a maraca I'm a lasagna hog, go hang a salami Tier 1: Check multiple-word phrases to determine if they are a palindrome. Assume words are both upper and lower case and disregard all punctuation. If the phrase is NOT a palindrome determine which single character must be removed to make it a palindrome. Madams I'm Adam A car, a man, a maracca I'm a lasagnas hog, go hang a salami

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!