Filling Elements in an Array: int type
import java.util.Arrays; public class Main { public static void main(String[] argv) throws Exception { int[] intArr = new int[10]; int intFillValue = -1; Arrays.fill(intArr, intFillValue); } }