LeetCode: Reverse String Jun 25 2016 123456789public class Solution { public String reverseString(String s) { if (s == null || s.length() < 2) { return s; } return new StringBuilder(s).reverse().toString(); }}