Fills and returns the given array, assigning the given boolean value to each element of the array. @param a the array to fill (may be null). @param val the value to store in all elements of the array. @return the given array. @see Arrays#fill(boolean[],boolean) @since 3.18.0
(final boolean[] a, final boolean val)
| 95 | * @since 3.18.0 |
| 96 | */ |
| 97 | public static boolean[] fill(final boolean[] a, final boolean val) { |
| 98 | if (a != null) { |
| 99 | Arrays.fill(a, val); |
| 100 | } |
| 101 | return a; |
| 102 | } |
| 103 | |
| 104 | /** |
| 105 | * Fills and returns the given array, assigning the given {@code byte} value to each element of the array. |