@@ -0,0 +1,610 @@
+class Solution %7B%0A    public String reverseString(String s) %7B%0A        char%5B%5D chars = s.toCharArray();%0A        int start = 0, end = s.length() - 1;%0A        while (start %3C end) %7B%0A            swap(chars, start, end);%0A            start++;%0A            end--;%0A        %7D%0A        return new String(chars);%0A    %7D%0A%0A    private void swap(char%5B%5D chars, int left, int right) %7B%0A        char temp = chars%5Bleft%5D;%0A        chars%5Bleft%5D = chars%5Bright%5D;%0A        chars%5Bright%5D = temp;%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        String s = %22hello%22;%0A        System.out.println(new Solution().reverseString(s));%0A    %7D%0A%7D%0A

344. Reverse String