+ 4
Can a String be converted into StringBuffer or StringBuilder? If Yes how, and if No why.
3 Antworten
+ 6
Before asking a question on the Q/A,
try to search :
• Google Advanced Search :
Set domain to 》sololearn.com《 for search only on the SoloLearn
https://www.google.com/advanced_search
• Eclipse Wiki :
"Before asking a question on the forums"
https://wiki.eclipse.org/Before_asking_a_question_on_the_forums
https://code.sololearn.com/cL45oPDKApLU/?ref=app
+ 4
I have no idea, but thanks.
+ 2
Yes it can be
//Consider the following example
String s1 ="hello";
StringBuilder s2 = new StringBuilder(s1);
StringBuffer s3 = new StringBuffer(s1);