class palindrone2
{ public static void main(String args[])
{ if(args.length==0)
System.out.println("java palindrone YourString");
else
{ String st1=new String(args[0]);
boolean palin=true;
int i,j=st1.length()-1;
for(i=0;i<st1.length()/2;i++)
if(st1.charAt(i)!=st1.charAt(j--))
{ palin=false;
break;
}
if(palin)
System.out.println("Palindrone");
else
System.out.println("Not palindrone");
}
}
}
{ public static void main(String args[])
{ if(args.length==0)
System.out.println("java palindrone YourString");
else
{ String st1=new String(args[0]);
boolean palin=true;
int i,j=st1.length()-1;
for(i=0;i<st1.length()/2;i++)
if(st1.charAt(i)!=st1.charAt(j--))
{ palin=false;
break;
}
if(palin)
System.out.println("Palindrone");
else
System.out.println("Not palindrone");
}
}
}