📅  最后修改于: 2022-03-11 14:52:20.703000             🧑  作者: Mango
Strings are immutable.
Which means you can easily copy a string using this method:
String string1 = "Original String";
String string2 = string1;
string1 = "New String";
and string2 will still be "Original String".