Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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());
    }
}