Compiler Error J0193

Cannot have an array of type 'void'

An attempt to define an array of type void was found by the compiler. The void data type is for use with methods to declare that the method has no return value and can not be used as an array.

public class Simple{
   
   void MyArray[]; //error: void arrays not supported
   
}