how to set up an array in java code example
Example 1: java how to initialize an array
int[] arr = new int[10]; //Can hold 10 elements
Example 2: array declaration and initialization in java
int[] age = new int[5];
int[] arr = new int[10]; //Can hold 10 elements
int[] age = new int[5];