Back
Basically, we can use the StringBuilder class, which will more efficient the way you want.
I hope this will help.
Want to become a Java Expert? Join Java Training now!!
Want to know more about Java? Watch this video on Learn Java | Java Programming for Beginners:
30.9k questions
32.9k answers
500 comments
665 users