@@ -0,0 +1,920 @@
+public class ReverseTheString%0A%7B%0A    public static void main(String%5B%5D args)%0A    %7B%0A        String str = %22MyJava%22;%0A %0A        //1. Using StringBuffer Class%0A %0A        StringBuffer sbf = new StringBuffer(str);%0A %0A        System.out.println(sbf.reverse());    //Output : avaJyM%0A %0A        //2. Using iterative method%0A %0A        char%5B%5D strArray = str.toCharArray();%0A %0A        for (int i = strArray.length - 1; i %3E= 0; i--)%0A        %7B%0A            System.out.print(strArray%5Bi%5D);    //Output : avaJyM%0A        %7D%0A %0A        System.out.println();%0A %0A        //3. Using Recursive Method%0A %0A        System.out.println(recursiveMethod(str));    //Output : avaJyM%0A    %7D%0A %0A    //Recursive method to reverse string%0A %0A    static String recursiveMethod(String str)%0A    %7B%0A         if ((null == str) %7C%7C (str.length() %3C= 1))%0A         %7B%0A                return str;%0A         %7D%0A %0A         return recursiveMethod(str.substring(1)) + str.charAt(0);%0A    %7D%0A%7D%0A

Create reverse.java