Java - Write code to construct String by appending char array

Requirements

Write code to construct String by appending char array

Demo

//package com.book2s;

public class Main {
    public static void main(String[] argv) {
        char[] ch = new char[] { 'b', 'o', 'o', 'k', '2', 's', '.', 'c',
                'o', 'm', 'a', '1', };
        System.out.println(constructString(ch));
    }/*from   www. ja  v  a 2s .  c  o m*/

    public static String constructString(char[] ch) {
        String x = "";
        for (char c : ch) {
            x = x + Character.toString(c);
        }
        return x;
    }
}