SubhanUllah Posted September 20, 2022 Report 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
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.