Do a google search for java stringbuilder


Problem:

Question 1- Do a google search for java StringBuilder and StringBuffer classes. Why is it better to use StringBuilder or StringBuffer classes and methods rather than using the String class methods?

Question 2- Some other useful String methods are: trim, replace, concat, valueOf. What is an alternative to the following statement.. assume that s1 and s2 are string variables String s3 = s1.concat(s2);

Any help would be greatly appreciated!

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Do a google search for java stringbuilder
Reference No:- TGS0893796

Expected delivery within 24 Hours