Here you can find the source of fill(short[] array, short value)
public static void fill(short[] array, short 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;/*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; } } }