Java tutorial
import java.io.*; public class Main { public static void main(String[] args) { char[] c1 = { 'a', 'b', 'c', 'd', 'e' }; char[] c2 = { 'f', 'g', 'h', 'i', 'j' }; PrintWriter pw = new PrintWriter(System.out); // print char array pw.println(c1); pw.println(c2); // flush the writer pw.flush(); } }