title: i and j not being initialized. But I already wrote int i and int j. What is wrong
body: <p>When I try to compile it, Eclipse says that i and j has not been initialized. What am I doing wrong? The question is about creating a circle.</p>
  
  <pre><code>public class Question2 
  {
  
      public static void main(String[] args) {
  
          int x = 14;
          int y = 8;
          int radius = 5;
  
  
          DrawMeACircle(x,y,radius);
  
      }
  
      public static void DrawMeACircle(int x, int y, int radius)
      {
  
          int i, j;
          int gridsize = 99;
          int loop1;
          loop1 = ((x-i)*(x-i))+((y-j)*(y-j));
                  // The problem is here (in the line above), it say i and j has not been initialized.
  
                  int loop2 = loop1-radius*radius; 
                  int c = radius-1; 
  
          for (i=0; i&lt;gridsize; i++)
          {
              //System.out.print("#");
              for (j=0; j&lt;gridsize; j++)
              {
                  if(loop2 &gt;=0 &amp;&amp; loop2&lt;= c )
                      {System.out.print("#");}
                  else
                      {System.out.print(" ");}
  
              }
              System.out.print("\n"); 
  
          }
      }
  }
  </code></pre>