Question: Need help with this small java code: Palindrome Checker - A palindrome is a string that is the same forwards as backwards. For example, the

Need help with this small java code:

Palindrome Checker - A palindrome is a string that is the same forwards as backwards. For example, the following strings are palindromes:

" ", "a", "aa", "bb", "aba", "bab", "bob"

These are not:

"ab", "ba", "bba", "abb"

Use StringBuilder concept to create a palindrome checker. The method will be called palindromChecker and it will use the var-arg concept to accept 1 to many Strings. The class name for this program is Palindrome. I will be using a test harnessNeed help with this small java code: Palindrome Checker - A palindrome to grade your program, so all naming requirements need to be followed. If your program fails due to incorrect naming conventions then your program will be given a zero. No exceptions.

Test Harness Code:

public class TestPalindrome {

public static void main(String[] args) {

Palindrome palindrome = new Palindrome();

boolean result = palindrome.palindromChecker("bob", "Sue", "aaa",

"Gossai");

System.out.println("All strings entered were palindromes: " + result);

}

}

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!