Here you can find the source of fillArray(char[] array, int offset, char value)
public static void fillArray(char[] array, int offset, char value)
//package com.java2s; public class Main { /**/* w ww .j a va2 s . c om*/ * Fills part of the array with a value. */ public static void fillArray(char[] array, int offset, char value) { int to = array.length; while (--to >= offset) { array[to] = value; } } /** * Fills part of the array with a value. */ public static void fillArray(byte[] array, int offset, byte value) { int to = array.length; while (--to >= offset) { array[to] = value; } } /** * Fills the array with a value. */ public static void fillArray(Object[] array, Object value) { int to = array.length; while (--to >= 0) { array[to] = value; } } /** * Fills the int array with a value */ public static void fillArray(int[] array, int value) { int to = array.length; while (--to >= 0) { array[to] = value; } } /** * Fills the double array with a value */ public static void fillArray(double[] array, double value) { int to = array.length; while (--to >= 0) { array[to] = value; } } /** * Fills the int array with a value */ public static void fillArray(boolean[] array, boolean value) { int to = array.length; while (--to >= 0) { array[to] = value; } } }