title: Return 2D Array
body: <p>I have a method which creates a 2D array. I want to return this 2D array to use it in another class.</p>
  
  <pre><code>public class drawBoxClass {
  public String[] drawBox(int boxLength) {
  
      String[][] arrayBox = new String[boxLength][boxLength+1];
  
      //method stuff
  
      return new String[][]arrayBox;
      }
  }
  </code></pre>
  
  <p>I've tried googling on how to return 2D string arrays, but I don't get how to return it.</p>
  
  <p>I'm getting "array dimension missing".</p>