例子6.txt

来自「这是一本java基础教程 对新手上路有很大帮助」· 文本 代码 · 共 13 行

TXT
13
字号
public class Example6_6{
    public static void main(String args[ ]){
        StringBuffer str=new StringBuffer("0123456789");
        str.setCharAt(0 ,'a'); 
        str.setCharAt(1 ,'b');
        System.out.println(str); 
        str.insert(2, "**");
        System.out.println(str);
        str.delete(6,8);
        System.out.println(str);
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?