title: Why can't I create this class object in Java? Giving me Cannot find symbol
body: <p>So I wrote a simple class defining what a complex number is and methods to add, subtract, multiply, divide, but when I try to create a class object of type ComplexNumber in a different class with a main method, I get compiler errors that say it 'cannot find symbol'. Almost like the main method class can't see the ComplexNumber class. I even put them in the same package to make sure of this, and Yes, I've compiled the ComplexNumber class before attemtping to compile the main method class. </p>
  
  <p>This is the class with the sub,mult,div methods removed for sanity's sake:</p>
  
  <p>*** Edit: Okay, dumping both entire classes for clarity</p>
  
  <pre><code>package CN001;
  
  public class ComplexNumber {
  
  private float a;
  private float b;
  
  public ComplexNumber(float _a, float _b) {
      this.a = _a;
      this.b = _b;
  }
  
  public float getA(){
      return this.a;
  }
  
  public float getB(){
      return this.b;
  }
  
  public ComplexNumber complexNumberAdd(ComplexNumber otherNumber){
      ComplexNumber newComplex;
      float newA = a + otherNumber.getA();
      float newB = b + otherNumber.getB();
      newComplex = new ComplexNumber(newA, newB);
      return newComplex;
  }
  }
  </code></pre>
  
  <p>And this is the main class:</p>
  
  <pre><code>package CN001;
  
  public class ComplexNumberRunner {
  
  public static void main (String[] args){
  float _a;
  float _b;
  
  ComplexNumber addComplex = new ComplexNumber(_a,_b);
  }
  }
  </code></pre>