Here you can find the source of convertCharArray(char[] arr)
public static Character[] convertCharArray(char[] arr)
//package com.java2s; /*/*ww w.j a v a 2 s .co m*/ * PortUtil.cs * Copyright ? 2009-2011 kbinani * * This file is part of org.kbinani. * * org.kbinani is free software; you can redistribute it and/or * modify it under the terms of the BSD License. * * org.kbinani is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ public class Main { public static Character[] convertCharArray(char[] arr) { Character[] ret = new Character[arr.length]; for (int i = 0; i < arr.length; i++) { ret[i] = arr[i]; } return ret; } }