点击运行
public class Main { public static void main(String args[]) { String s = "Strings are immutable"; s = s.concat(" all the time"); System.out.println(s); } }
运行结果 :
正在执行...