|
1
2
3
4
5
6
7
8
9
10
11 |
public class StringTest {public static void main(String[] args) {StringBuffer i = new
StringBuffer("abc");String j = i.reverse().toString();System.out.println(j); }} |
reverse() 颠倒StringBuffer对象中的字符
原文:http://www.cnblogs.com/Mr-Clint/p/3560534.html