• 2022-06-07
    下列程序对字符串进行操作public class Test{public static void main(String[ ] args){StringBuffer sb = new StringBuffer("保护环境");______1______("责任");//追加字符串System.out.println(sb); ______2______(4,"大家的");//插入字符串System.out.println(sb);______3______(4,7);//删除字符串System.out.println(sb);}}
  • 举一反三