I have recently been thinking about the difference between the two ways of defining an array:
int[] array
int array[]
No difference.
Quoting from Sun:
The
[]
may appear as part of the type at the beginning of the declaration, or as part of the declarator for a particular variable, or both, as in this example:byte[] rowvector, colvector, matrix[];
This declaration is equivalent to:
byte rowvector[], colvector[], matrix[][];