@@ -0,0 +1,1239 @@
+/*%0A Program to check the given string is a palindrome or not.%0A */%0Apackage Strings;%0A////////////////////////////////////////////////////////////////////////////////%0Aimport java.util.Scanner;%0A////////////////////////////////////////////////////////////////////////////////%0Apublic class IsStrPalindrome %7B%0A    //--------------------------------------------------------------------------%0A    public static void main(String args%5B%5D)%7B%0A        Scanner scn=new Scanner(System.in);%0A        %0A        System.out.println(%22Enter a String to check if it is palindrome %22);%0A        String orgStr=scn.nextLine();%0A        %0A        String revStr=%22%22;%0A        for(int i=orgStr.length()-1;i%3E=0;i--)%0A            revStr+=orgStr.charAt(i);%0A        %0A        if(revStr.equals(orgStr))%0A            System.out.println(orgStr+%22 is a palindrome%22);%0A        else%0A            System.out.println(orgStr+%22 is not a palindrome%22);%0A        %0A    %7D%0A    //--------------------------------------------------------------------------%0A%7D%0A////////////////////////////////////////////////////////////////////////////////%0A////////////////////////////////////////////////////////////////////////////////%0A/*%0AOUTPUT : %0AEnter a String to check if it is palindrome %0Amadam%0Amadam is a palindrome%0A*/

Program to check if a given string is a palindrome or not