character Array To String - Java java.lang

Java examples for java.lang:String Array

Description

character Array To String

Demo Code


//package com.java2s;

public class Main {
     static String characterArrayToString(Character[] carr) {
        StringBuilder result = new StringBuilder();
        for (Character each : carr) {
            result.append(each);//from  w  ww  .  j  a va 2 s  .  co m
        }

        return result.toString();
    }
}

Related Tutorials