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