set string array java code example
Example 1: java new string array
String[] myStringArray = new String[3];
String[] myStringArray = {"a", "b", "c"};
String[] myStringArray = new String[]{"a", "b", "c"};
Example 2: java create array with values
//Given values must match array type
int[] myIntArray = {1, 2, 3};
Example 3: set array length java
int[] num = new int[5];