I want to create an array of size n with the same value at every index in the array. What\'s the best way to do this in Java?
n
For example, if n
Arrays.fill(...) is what you are looking for.