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