You need to specify the type of array. Use this:
arrayOfIntegers = new int[] {11,12,15,17};
From JLS Section 10.6 :
An array initializer can be specified in a declaration (ยง8.3, ยง9.3, ยง14.4) or as part of an array creation expression (ยง15.10) to create an array and provide some initial values.
If you are trying to reassign array elements in a certain range, you cannot do this with direct assignment. Either you need to assign values โโby index individually, or use the method specified by @TJCrowder in his answer.
source share