[JAVA] – How to subscribe all values of an array?

Use the method Arrays.fill(<array>,<value>);` Following an example. import java.util.* int[] myArray = new int[4]; Arrays.fill(myArray, -1); The result of this … More