title: No output is displaying, cannot find error (Java)
body: <p>I am trying to write a Tester and a class that can solve quadratic function. </p>
  
  <p>If you are unfamiliar with quadratic function, or need a reminder, here is a quick link to it's Wikipedia article: <a href="http://en.wikipedia.org/wiki/Quadratic_function" rel="nofollow">http://en.wikipedia.org/wiki/Quadratic_function</a></p>
  
  <p>My tester seems to work fine, however whenever I try to call the method, the program stops, and it doesn't display the output of the method (which is supposed to display the answer).</p>
  
  <p>I am not skilled enough to find out if the error is within the class or the tester.</p>
  
  <p><strong>Tester:</strong></p>
  
  <pre><code>/**
   * A Tester to use to solve quadratic formula. Enter your values
   * when prompted, and the answer will be displayed on screen.
   * 
   * @author (Austin C.) 
   * @version (1.0.0)
   */
  import java.io.*;
  import java.util.*;
  public class C_tester
  {
      public static void main (String args[])
      {
          Scanner kb = new Scanner(System.in);
          System.out.println ("Enter the coefficents in the form of the following:\n1.A\n2.B\n3.C");
  
      System.out.print("Enter the number for A:");
      int a = kb.nextInt();
  
      System.out.print("Enter the number for B:");
      int b = kb.nextInt();
  
      System.out.print("Enter the number for C:");
      int c = kb.nextInt();
  
      QuadraticFunction.quadratic(a,b,c);
      }
  }
  </code></pre>
  
  <p><strong>Quadratic Function Class:</strong>   </p>
  
  <pre><code>/**
   * @Params: you must enter the coefficents, A, B, and C, and the program will calculate them to find the answer
   * to a quadratic forumla. coefficents must be integers or doubles. 
   * 
   * @author (Austin C.) 
   * @version (1.0.0)
   */
  public class QuadraticFunction
  {
      public void QuadraticFunction()
      {
      }
  
      public static double quadratic(double a, double b, double c)
      {
      double topPos;
      double topNeg;
      double bot;
  
      topPos = -b + Math.sqrt(Math.pow(b,2.0)  - 4 * a * c);
      topNeg = -b - Math.sqrt(Math.pow(b,2.0)  - 4 * a * c);
      bot = 2*a;
  
      double ansPos = topPos/bot;
      double ansNeg = topNeg/bot;
  
      return ansPos + ansNeg;
      }
  }
  </code></pre>
  
  <p>Any help to find the error myself or find it for me is greatly appreciated. Also, if you find a more efficient way to do this, please share! I am always looking for more efficient ways to write code. </p>
  
  <p>If the question is unclear, please say so and I can redo it in a more understandable way.</p>