Fastest way to set all values of an array? January 19, 2023 by Tarik Try Arrays.fill(c, f) : Arrays javadoc