title: Calling a global Array
body: <p>I'm currently trying to draw shapes with 2D Arrays. In my class there is a global array defined with <code>public char canvas[][];</code></p>
  
  <p>Up until now, I have only declared arrays with <code>char canvas[][] = new char[height][width];</code></p>
  
  <p>If this Array has already been declared, and I'm not supposed to amend the code I've been given, how do I call an instance of that array so that I can use it?</p>
  
  <p>thanks.</p>
  
  <p>(edit)</p>
  
  <pre><code>class DrawingSystem {
  
      public char canvas[][];
  
         public static void makeNewCanvas(int tmpWidth, int tmpHeight) {
  
          canvas[][] = new char[tmpHeight][tmpWidth];
  
          for (int row=0; row&lt;tmpHeight; row++) {
              for (int col=0; col&lt;tmpWidth; col++) {
                  canvas[row][col] = ' ';
              }
          }       
      }
  </code></pre>