@@ -0,0 +1,512 @@
+%0Apublic class StringOps %7B%0A%09public static void main(String%5B%5D args) %7B%0A%09%09// string builder%0A%09%09 StringBuilder sb = new StringBuilder();%0A%09%09 sb.append(%22My name is Ian%22);%0A%09%09 sb.append(%22 %22);%0A%09%09 sb.append(%22I am a lion tamer%22);%0A%09%09 System.out.println(sb.toString());%0A%09%09 %0A%09%09 // thread safe%0A%09%09 StringBuffer sbf = new StringBuffer();%0A%09%09 sbf.append(%22My name is Ian%22);%0A%09%09 sbf.append(%22 %22);%0A%09%09 sbf.append(%22I am a lion tamer%22);%0A%09%09 System.out.println(sbf.toString());%0A%09%09 %0A%09%09 // formatting%0A%09%09 System.out.printf(%22%251.5f%22, 5558.0);%0A%09%7D%0A%7D%0A

Use StringBuilder and StringBuffer