java declare int array with values code example
Example 1: java how to initialize an array
int[] arr = new int[10]; //Can hold 10 elements
Example 2: java initialize int array
int[] arr = new int[n];
int[] arr = new int[10]; //Can hold 10 elements
int[] arr = new int[n];