字符串反转代码

1
2
3
public static String reverseTestOne(String s) {
return new StringBuffer(s).reverse().toString();
}