1 2 3 4 5 6 7 | /*字符串倒序输出*/ @Test public void strReverse() { StringBuffer stringBuffer = new StringBuffer("blog.hachuizi.com"); StringBuffer res = stringBuffer.reverse(); System.out.println(res); } |
1 2 3 4 5 6 7 | /*字符串倒序输出*/ @Test public void strReverse() { StringBuffer stringBuffer = new StringBuffer("blog.hachuizi.com"); StringBuffer res = stringBuffer.reverse(); System.out.println(res); } |