Java Char Array Create charArray(int arraySize)

Here you can find the source of charArray(int arraySize)

Description

char Array

License

Apache License

Declaration

public static char[] charArray(int arraySize) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static char[] charArray(int arraySize) {
        char[] result = new char[arraySize];
        for (int i = 0; i < arraySize; i++) {
            result[i] = 'a';
        }/* www .j a  va 2  s  .c  o m*/
        return result;
    }
}

Related

  1. charArrayLiteral(CharSequence cs)
  2. toCharacterArray(String s)
  3. toCharArray(boolean[] array)
  4. toCharArray(byte[] barr)