Please write a JAVA program to solve the subsequent problem.
Program: Write a recursive method that takes a string as argument and returns the reverse of the string (given the argument "Horse" your method should return the string "esroH").
Write a program that tests if an input string is a palindrome.
Your program should take as input a line containing a single string and return true if the string is a palindrome and false if it is not.
Note a palindrome is a word that is spelled the same way forward and backwards.
Prepare this program in java programming