initializing an array with a variable java code example
Example: java create array with values
//Given values must match array type
int[] myIntArray = {1, 2, 3};
//Given values must match array type
int[] myIntArray = {1, 2, 3};