Java tutorial
import java.io.*; public class Main { public static void main(String[] args) { char c = 'A'; Writer writer = new PrintWriter(System.out); try { // append a char writer.append('c'); // append a new char writer.append(c); // flush the writer to see the result writer.flush(); } catch (IOException ex) { ex.printStackTrace(); } } }