问题 更新时间2023/4/3 12:59:00 设有String s = new String(“abc”); 要使得运行结果为s=abc10可运行下列选项中的:( )。 A、 s += 10; System.out.print(“s=” + s); B、 String s2 = new String(“10”);s = s + s2;System.out.print(“s=” + s); C、 String s2 = new String(“10”); System.out.print(“s=” + s.concat(s2));D、 以上均可 答案 登录 注册 正确答案为:D 出自:石家庄铁道大学 >> 石家庄铁道大学面向对象程序设计