dud
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"); }}
Ere is a preposition that is a palindrome.
No, it isn't a palindrome.
The palindrome is Level.
There is no palindrome for 14.
Any number that is is a palindrome will always be a palindrome.
No. A palindrome reads the same backwards and forwards. 5791111975 is an example of a palindrome.
The palindrome is Gig.
"Saltcaps" is a palindrome for plastic.
1998 is not and cannot be a palindrome.
Yes, 1331 is a palindrome