Here you can find the source of fill(byte[] array, byte value)
public static void fill(byte[] array, byte value)
//package com.java2s; public class Main { public static void fill(byte[] array, byte value) { for (int i = 0; i < array.length; i++) { array[i] = value;/* w w w .j ava 2 s . c o m*/ } } public static void fill(long[] array, long value) { for (int i = 0; i < array.length; i++) { array[i] = value; } } public static void fill(short[] array, short value) { for (int i = 0; i < array.length; i++) { array[i] = value; } } }