title: pass array to method Java
body: <p>How can I pass an entire array to a method?</p>
  
  <pre><code>private void PassArray() {
      String[] arrayw = new String[4];
      //populate array
      PrintA(arrayw[]);
  }
  
  private void PrintA(String[] a) {
      //do whatever with array here
  }
  </code></pre>
  
  <p>How do I do this correctly?</p>