1.2.4以下这段代码会打印出什么?
String string1="hello";
String string2=string1;
string1="world";
StdOut.println(string1);
StdOut.println(string2);
解:
world
hello
转载于:https://www.cnblogs.com/longjin2018/p/9848824.html
1.2.4以下这段代码会打印出什么?
String string1="hello";
String string2=string1;
string1="world";
StdOut.println(string1);
StdOut.println(string2);
解:
world
hello
转载于:https://www.cnblogs.com/longjin2018/p/9848824.html