Docs.Oracle.com/en/java/javase/11/docs/api/java.base/java/util/Arrays.html#fill(int[],int,int,int)
final int[] example = new int[10]; // 10 indexed integer values
void setup() {
java.util.Arrays.fill(example, 0, 4, 999); // assign value 999 to indices 0 to 3
println(example);
exit();
}