本帖最后由 罗勇 于 2016-5-21 17:09 编辑
- public class My_StringBuffer {
- /**
- * @param args
- */
- public static void main(String[] args) {
- StringBuffer s1 =new StringBuffer();
- StringBuffer s2 = s1.append(true);
- StringBuffer s22 =s1.insert(1, "a");
- StringBuffer s3 =new StringBuffer();
- StringBuffer s4 =s3.append("true");
- StringBuffer s44 =s3.insert(1, "a");
- System.out.println(s1);
- System.out.println(s2);
- System.out.println(s22);
- System.out.println(s3);
- System.out.println(s4);
- }
- }
复制代码 |
|