(Solved) : Objective 1 Palindromejava Implement Function Check Input Palindrome Input Could Type Char Q41420142 . . .

Objective 1: Palindrome.java Implement a function to check if an input is a palindrome. The input could be of any type - char

Objective 1: Palindrome.java Implement a function to check if an input is a palindrome. The input could be of any type – character, number, or objects. If the input has different case, for example RACEcar, it should still be considered a palindrome. A palindrome is same forwards as it is backwards (i.e. 0 -> 1 -> 2 -> 1-> 0) Suggested Implementation: Use the Stack interface. You may use any data structure to accomplish the task. Sample input: [“r”, “a”, “c”, “e”, “c”, “a”, “r”] Assume only numbers or characters Output: boolean TRUE FALSE Show transcribed image text Objective 1: Palindrome.java Implement a function to check if an input is a palindrome. The input could be of any type – character, number, or objects. If the input has different case, for example RACEcar, it should still be considered a palindrome. A palindrome is same forwards as it is backwards (i.e. 0 -> 1 -> 2 -> 1-> 0) Suggested Implementation: Use the Stack interface. You may use any data structure to accomplish the task. Sample input: [“r”, “a”, “c”, “e”, “c”, “a”, “r”] Assume only numbers or characters Output: boolean TRUE FALSE

Expert Answer


Answer to Objective 1: Palindrome.java Implement a function to check if an input is a palindrome. The input could be of any type -…