Using arrays should include declaring them first, such as by the following:

float[ ] x ;         x = new float [8];
boolean[ ] flags = new boolean[1024];
String[ ] names = new String[32];
Point[ ] ideal = new Point[1000];
int c[ ] = new int[12]
double[ ] array1, array2;
double[ ] array1 = new double[10];

Java supports declarations of arrays with brackets either after the data type of the array or after the name of the array.