title: Can't run paint method from main method
body: <p>In the main method, I am trying to run this:</p>
  
  <pre><code>public static void main(String[] args)
  {
      game.paintBlocks(g);
  }
  </code></pre>
  
  <p>And getting a "cannot be resolved to variable" error for the "g" parameter.</p>
  
  <p>Elsewhere I have this, which calls on another method in another class (paint(g)) to paint a grid of blocks:</p>
  
  <pre><code>public void paintBlocks(Graphics g)
  {  
      for (int r = 0; r&lt;7; r++)
      {
          for (int c = 0; c&lt;5; c++)
          {
              block[r][c].paint(g);
          }
      }
  </code></pre>
  
  <p>Do I need to tell it that "g" is in another class?  I'm new to this and any help would be awesome!</p>