using string inside string builder code example
Example 1: c# append in strigbuilder
StringBuilder sb = new StringBuilder();
sb.Append("Hello ");
sb.AppendLine("World!");
sb.AppendLine("Hello C#");
Console.WriteLine(sb);
Example 2: java stringbuilder set value
StringBuilder str = new StringBuilder("ABCD");
// set char at index 2 to 'L'
str.setCharAt(2, 'L');