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