In Java how to you copy one object into another without changing the reference?

前端 未结 0 774
借酒劲吻你
借酒劲吻你 2020-12-08 00:40
String string1 = new String();
String string2 = new String();

string1 = "Roastie"; 
string2 = string1;

Apparently what happens here is th

相关标签:
回答
  • 消灭零回复
提交回复
热议问题