Java tutorial
import java.io.CharArrayWriter; public class Main { public static void main(String[] args) { char[] ch = { 'A', 'B', 'C', 'D', 'E', 'F' }; CharArrayWriter chw = new CharArrayWriter(); for (char c : ch) { chw.append(c); } System.out.println(chw.toString()); } }