Android Short Array Fill fill(short[] array, short value)

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

Description

fill

License

Open Source License

Declaration

public static void fill(short[] array, short 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;/*from  w  w  w .j a v  a  2s.  com*/
        }
    }

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