Hi All
I wanted to replace the String Concatenation using " + " with a string buffer to eliminate performance hogs.
I have a string
String str = "Testing "+ firstStrVariabl e + "NextTest" + secondStringVar iable + "ThirdTest" ;
Is it worth replacing the String in this case with StringBuffer and StringBuffer.Ap pend
Any Suggestions pl post it
-
Thanks
Vignesh.M
I wanted to replace the String Concatenation using " + " with a string buffer to eliminate performance hogs.
I have a string
String str = "Testing "+ firstStrVariabl e + "NextTest" + secondStringVar iable + "ThirdTest" ;
Is it worth replacing the String in this case with StringBuffer and StringBuffer.Ap pend
Any Suggestions pl post it
-
Thanks
Vignesh.M
Comment