Java tutorial
import java.io.*; public class Main { public static void main(String[] args) { char c = 'b'; StringWriter sw = new StringWriter(); // write chars sw.write('a'); sw.write(c); System.out.println(sw.toString()); } }