@@ -0,0 +1,600 @@
+package easy;%0A%0Apublic class ReverseString %7B%0A    public String reverseString_cheating(String s) %7B%0A        return new StringBuilder(s).reverse().toString();%0A    %7D%0A    %0A    public String reverseString(String s) %7B%0A        int i = 0, j = s.length()-1;%0A        char%5B%5D chars = s.toCharArray();%0A        while(i %3C j)%7B%0A            char temp = chars%5Bi%5D;%0A            chars%5Bi%5D = chars%5Bj%5D;%0A            chars%5Bj%5D = temp;%0A            i++;%0A            j--;%0A        %7D%0A        StringBuilder sb = new StringBuilder();%0A        for(char c : chars)%7B%0A            sb.append(c);%0A        %7D%0A        return sb.toString();%0A    %7D%0A%7D%0A

reverse string