JAVA
Write a java program that takes a string as input from the user and finds out if the string is a palindrome or not. A string is a palindrome if it reads the same from forward as well as from backward. For example, the string “madam” is a palindrome. Use a for loop to solve this problem.
Sample inputs and outputs:
Input: madam
Output: palindrome
Input: Dad
Input: hello
Output: not a palindrome
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here