'array dimension missing' is shown when the array size is not specified while allocating memory for the array or creating an array.
int data[ ]=new int[ ];
See that, blank [ ] is given in new int[ ]. We must give an int as the size of the array. Memory will be allocated for the array according to the given int within the [ ] as below:
int data=new int;
If the above solutions do not work for you. Please comment below giving your code. I'll try to respond.