how to initialize java arrays code example
Example 1: array declaration and initialization in java
int[] age = new int[5];
Example 2: java initialize int array
int[] arr = new int[n];
int[] age = new int[5];
int[] arr = new int[n];