initialize an integer array code example
Example 1: java create array with values
//Given values must match array type
int[] myIntArray = {1, 2, 3};
Example 2: int[]
int[] array;
// is equivalent to
int array[];
//Given values must match array type
int[] myIntArray = {1, 2, 3};
int[] array;
// is equivalent to
int array[];