dud
import java.util.Scanner; public class Palindrome{ public static void main(String[] args){ String front; String back =""; char[] failure; String backwards; Scanner input=new Scanner(System.in); System.out.print("Enter a word: "); front=input.next(); front=front.replaceAll(" ", ""); failure=front.toCharArray(); for (int i=0; i<failure.length; i++){ back=failure[i] + back; } if (front.equals(back)){ System.out.print("That word is a palindrome"); }else System.out.print("That word is not a palindrome"); }}
No, it isn't a palindrome.
The palindrome is Level.
There is no palindrome for 14.
No. A palindrome reads the same backwards and forwards. 5791111975 is an example of a palindrome.
Any number that is is a palindrome will always be a palindrome.
1998 is not and cannot be a palindrome.
No American state is a palindrome.
"Aha" is a palindrome that can be used as a preposition.
"radar" is a palindrome for detector.
Radar is a palindrome for detector.