Passing an array to a Java function
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/7521891/java-array-brackets-after-variable-name">java - Array brackets after variable name</a>  </p>
</blockquote>



<p>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?</p>

<p>As in:</p>

<pre><code>private int myFunction(int array[])
{
    //do stuff here
}
</code></pre>

<p>or...</p>

<pre><code>private int myFunction(int[] array)
{
    //do stuff here
}
</code></pre>

<p>They both "work", but is there a technical difference between the two?</p>
