Java tutorial
import java.lang.reflect.Array; import java.util.Arrays; public class Main { public static void main(String args[]) { boolean[] array = new boolean[] { true, true, true }; Array.setBoolean(array, 1, false); System.out.println(Arrays.toString(array)); } }