Possible Duplicate:
java - Array brackets after variable name
When writing a Java function that accepts an array as a parameter, should the function definition have the brackets ("[]") on the type or the variable name?
As in:
private int myFunction(int array[])
{
//do stuff here
}
or...
private int myFunction(int[] array)
{
//do stuff here
}
They both "work", but is there a technical difference between the two?