- public class De_StBu {
- public static void main(String[] args){
- method1();
- StringBuffer sb = new StringBuffer();
- sb.append("heima");
- sb.deleteCharAt(3);
- sb.delete(0, 4);
- StringBuffer sb1 = new StringBuffer("heima");
- sb1.replace(0,3,"bai");
- StringBuffer sb2 = new StringBuffer("woaiheima");
- sb2.substring(4,7);
-
-
-
-
-
复制代码 |
|