Java tutorial
import java.util.Arrays; public class Main { public static void main(String[] args) { int[] integer = new int[10]; System.out.println(Arrays.toString(integer)); Arrays.fill(integer, 1, 4, 5); System.out.println(Arrays.toString(integer)); } }