• 2022-06-07
    class Test { public static void main(String[] args) { StringBuffer sb = new StringBuffer("hello world"); sb.replace(6, sb.length(), "java"); System.out.println( sb.toString() ); } } 选择正确的运行结果
    A: hello javad
    B: hellojava
    C: hello java
  • 举一反三