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:
31k questions
32.8k answers
501 comments
693 users