LeetCode: Reverse String

直接调用StringBuffer.reverse()

1 public class Solution {
2     public String reverseString(String s) {
3         return new StringBuffer(s).reverse().toString();
4     }
5 }
原文地址:https://www.cnblogs.com/yingzhongwen/p/6086938.html