There is a method that fills an array of booleans with the selected value, this might be what you are after:
Arrays.fill(boolean[] a, boolean val)
Assigns the specified boolean value to each element of the specified array of booleans.
solved java array of booleans all set to the same value [closed]