Fills the specified array with the specified element. @param array the byte array to fill. @param value the byte element.
(byte[] array, byte value)
| 778 | * the {@code byte} element. |
| 779 | */ |
| 780 | public static void fill(byte[] array, byte value) { |
| 781 | for (int i = 0; i < array.length; i++) { |
| 782 | array[i] = value; |
| 783 | } |
| 784 | } |
| 785 | |
| 786 | /** |
| 787 | * Fills the specified range in the array with the specified element. |