Android Byte Array Fill fill(byte[] array, byte value)

Here you can find the source of fill(byte[] array, byte value)

Description

fill

License

Open Source License

Declaration

public static void fill(byte[] array, byte value) 

Method Source Code

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