title: how to call an instance method in another class
body: <pre><code>public class circle
  {
  
      double circle1;
  
      double Xvalue;
  
      double Yvalue;
  
      double radius;
  
      public double area = (3.14*(this.radius * this.radius));
  
      public double getArea ()
      {
          return area;
  
  
  
  
      }
  
  }
  </code></pre>
  
  <p>//this is my second class that will create the objects </p>
  
  <pre><code>public class tester
  {
     public static void main(String args [])
  
     {
  
          circle circle1 = new circle();
  
          circle1.Xvalue = 1;
  
          circle1.Yvalue = 2;
  
          circle1.radius = 4;
  
          System.out.println(getArea());
  
  
          //im not too sure why the print statement won't print the method getArea. 
  
      }
  }
  </code></pre>