To populate an array in Java, do this:
new Type[] { value1, value2, value3 }
.Here's how you do it:
int[] ints = new int[] { 1, 2, 3, 4, 5 };
double[] doubles = new double[] { 7.0, 42.0, 3.3 };
String[] strings = new String[] { "Hello", " ", "World", "!" };
System.out.println(java.util.Arrays.toString(ints)); // [1, 2, 3, 4, 5]
System.out.println(java.util.Arrays.toString(doubles)); // [7.0, 42.0, 3.3]
System.out.println(java.util.Arrays.toString(strings)); // [Hello, , World, !]