import java.util.Scanner;
class Scanner1
{
public static void main(String args[])
{
Scanner s1 = new Scanner(System.in);
System.out.print("Enter the word : ");
String str1 = s1.next();
System.out.println("string 1 : "+str1);
Scanner s2 = new Scanner(System.in);
System.out.print("Enter the word : ");
String str2 = s2.next();
System.out.println("string 2 : "+str2);
if(str1.equals(str2))
System.out.println("it is pollindrome");
else
System.out.println("it is not");
}
}
class Scanner1
{
public static void main(String args[])
{
Scanner s1 = new Scanner(System.in);
System.out.print("Enter the word : ");
String str1 = s1.next();
System.out.println("string 1 : "+str1);
Scanner s2 = new Scanner(System.in);
System.out.print("Enter the word : ");
String str2 = s2.next();
System.out.println("string 2 : "+str2);
if(str1.equals(str2))
System.out.println("it is pollindrome");
else
System.out.println("it is not");
}
}