SyntaxFix
Write A Post
Hire A Developer
Questions
String str1="this is a string"; String str2=str1.clone();
How about copy like this? I think to get a new copy is better, so that the data of str1 won't be affected when str2 is reference and modified in futher action.
str1
str2