设有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、 以上均可
出自:石家庄铁道大学面向对象程序设计