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.
More Related Contents:
- Difference boolean[] b = {false} vs. boolean b = false? [closed]
- What is the most elegant way to check if all values in a boolean array are true?
- How to find size/length of an array without using library functions/variables [closed]
- Does an Array’s specified capacity include 0?
- String index out of range in jva
- How to read a file and put it into an array of objects?
- Random shuffling of an array
- Why are arrays covariant but generics are invariant?
- Java integer to byte array
- How can I create an Array of ArrayLists?
- boolean[] vs. BitSet: Which is more efficient?
- How to convert a 1d array to 2d array?
- Why does Java allow arrays of size 0?
- Java: BufferedImage to byte array and back
- Java Arrays.asList on primitive array type produces unexpected List type [duplicate]
- How do I remove a specific element from a JSONArray?
- Remove duplicates from integer array
- If a char array is an Object in Java, why does printing it not display its hash code?
- Clone method for Java arrays
- Combine two integer arrays [duplicate]
- Flatten nested arrays in java
- Java Minimum and Maximum values in Array
- How can I create an array in Kotlin like in Java by just providing a size?
- Getting the length of two-dimensional array
- String to char array Java
- Return the index of clicked button?
- Create an array of ArrayList elements
- Finding the median value of an array?
- Valid JavaBeans names for boolean getter methods
- Java: Checking equality of arrays (order doesn’t matter)