title: Running a public static void main test to draw an object.
body: <pre><code>public static void draw (Graphics g, int x, int y, int width, int height) {
      if (height == 0) return;
  
      g.drawOval (x, y, width, height);
      draw (g, x, y, width/2, height/2);
      draw (g, x+width/2, y, width/2, height/2);
  } 
  </code></pre>
  
  <p>So on the code above i am trying to run a test but it keeps giving me errors. This is obviously a HW question where I think i have the code part down but believe it or not, we haven't really covered how to test the fictions properly. So I am trying:</p>
  
  <pre><code>public static void main (String[] args) {
      draw (g, 1, 2, 3, 4);
      //draw (null, 1, 2, 3, 4);
  }
  </code></pre>
  
  <p>Any help will be appropriated. Thank you. </p>