• 2022-07-24
    设原字符串s为StringBuffer型,且s="Hellojava",如果想用子串替换把s转换成"HelloWorld",则正确的语句是()
    A: s.replace(6,9,"World");
    B: s.replace(6,10,"World");
    C: s="World";
    D: s=replace("java","World");