Here you can find the source of charArray(int arraySize)
public static char[] charArray(int arraySize)
//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; } }