Filling Elements in an Array: short type
import java.util.Arrays; public class Main { public static void main(String[] argv) throws Exception { short[] shortArr = new short[10]; short shortFillValue = 2; Arrays.fill(shortArr, shortFillValue); } }