SubhanUllah Posted September 20, 2022 Report Share Posted September 20, 2022 String prefix=”prefix”; String suffix=”suffix”; StringBuilder str = new StringBuilder(prefix); str.append(suffix); // print string System.out.println("String = " + str.toString()); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.