Java Char Convert To convertCharArray(char[] arr)

Here you can find the source of convertCharArray(char[] arr)

Description

convert Char Array

License

Open Source License

Declaration

public static Character[] convertCharArray(char[] arr) 

Method Source Code

//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;
    }
}

Related

  1. convertChar(char c)
  2. convertCharacter(final String value)
  3. convertCharacterEntity(String value)
  4. convertCharacterOffsetToCodePointOffset(String inputStr, int charOffset)
  5. convertCharacters(String fileName)
  6. convertCharArrayToIntArray(char[] chars)
  7. convertChars(String orig_name, String chars, char toChar)
  8. convertCharSet(String str, String desCharset)
  9. convertCharsToUnicodeChars(final String s, final boolean toLowerCase)