stringbuilder hava code example
Example 1: java string builder
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append("string");
System.out.println("String = " + stringBuilder.toString());
Example 2: java stringbuilder set value
StringBuilder str = new StringBuilder("ABCD");
// set char at index 2 to 'L'
str.setCharAt(2, 'L');