setting the length of an array java code example
Example 1: array declaration and initialization in java
int[] age = new int[5];
Example 2: set array length java
int[] num = new int[5];
int[] age = new int[5];
int[] num = new int[5];