Initializing a Gosu array with default values

You can create an array with all of its elements set to the same default value by calling the makeArray Gosu enhancement method on the java.utils.Arrays class. Pass the default value and the size of the array. Gosu sets the type of the array to the same type as the default value. The following statement creates a String array of five elements, with each element initialized to the value no.

var stringArray = java.util.Arrays.makeArray("no", 5)