// note how you never specify the array's size in its type declaration.
int[] v;
// allocate space for the array
v = new int [100];
for ( int i = 0; i < v.length; i++ )
   {
   v[i] = i*2 + 999;
   }