Answers for "how to initialize array with different value java"

1

java initialize array with same value

Arrays.fill(array, -1);
Posted by: Guest on March-01-2021
1

initialize array with values java

int[] arr = {3,6,9,12};
int[] arr = new int[]{1, 2, 3};
Posted by: Guest on January-15-2021

Code answers related to "how to initialize array with different value java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language