title: I am having an issue with a simple triangle calculation program in java
body: <p><strong>Main method:</strong></p>
  
  <pre><code>import java.util.Scanner;
  
  public class TriangeRunner
  {
      // private instance variables
      private static double a, b, c;
      public static void main(String[] args)
      {
          // Instantiated an object from the class calcArea
          calcArea test = new calcArea();
          // Instantiated a Scanner object for user input.
          Scanner keyboard = new Scanner(System.in);
          System.out.print("Enter side A ::");
          a = keyboard.nextDouble();
          System.out.print("Enter side B ::");
          b = keyboard.nextDouble();
          System.out.print("Enter side C ::");
          c = keyboard.nextDouble();
          // Taking the referenced object test and calling 3 classes within 
          // within calcArea. (calcArea, setNums, toString)
          test.calcArea(a, b, c);
          test.setNums(a, b, c);
          test.toString();
      }
  }
  </code></pre>
  
  <p><strong>External Class:</strong></p>
  
  <pre><code>public class calcArea
  {
      private double sa, sb, sc, s, area, perimeter;
      public void setNums(double a, double b, double c)
      {
          this.sa = a;
          this.sb = b;
          this.sc = c;
      }
  
      public void calcArea(double a, double b, double c)
      {
          perimeter = a + b + c;
          s = perimeter / 2;
          area = Math.sqrt((s * (s-sa) * (s-sb) * (s-sc)));
      }
      public String toString()
      {
          return ("The sides" + sa + ", " + sb + ", " + sc + " create the perimeter which is then divided by two which yields " + s + " which is then fed into herons formula: Math.sqrt(side * (side-sidea) * (side-sideb) * (side-sidec)) which produces an area of" + area);
      }
  }
  </code></pre>
  
  <p>My focus on this program was to </p>
  
  <ol>
  <li>create a simple program for calculating the area of a triangle and </li>
  <li>for practice.</li>
  </ol>
  
  <p>There are no errors, so I think my mistake is some where in my <code>toString</code> method or in the <code>setNums</code> method.</p>
  
  <p>When I run the program, it prompts me for the sides and after that there is nothing. I am doing this in BlueJ as I am using Intellij for my class work and there are complications for adding classes to it.</p>
  
  <p>Please tell me if you need any further clarification.</p>