title: How to pass array as parameter in java method?
body: <p>Code:</p>
  
  <pre><code>Object[] a={ myObject};
  someMethod(Object ...arg);
  </code></pre>
  
  <p>when I try:</p>
  
  <pre><code>someMethod ( {myObject} );
  </code></pre>
  
  <p>I receive error in Eclipse.</p>
  
  <p>but when:</p>
  
  <pre><code>someMethod ( a );
  </code></pre>
  
  <p>all ok.
  Why this difference?
  Thanks.</p>