title: How to fix "java: cannot find symbol"
body: <p>I'm using JB IntelliJ IDEA and trying to create a program which sorts Rectangles. But I can't fix </p>
  
  <pre><code>"Error:(28, 22) java: cannot find symbol
    symbol:   method Rectangle(java.lang.Double,java.lang.Double)
    location: class io.github.vadimsam.rectsort.Rectangle".
  </code></pre>
  
  <p>What should I do?</p>
  
  <p>NB: recreation of project didn't help me.</p>
  
  <p>Main:</p>
  
  <pre><code>import java.util.ArrayList;
  import java.util.Comparator;
  import java.util.Scanner;
  
  class SComparator implements Comparator&lt;Rectangle&gt; {
  
      public int compare(Rectangle r1, Rectangle r2) {
          return r1.area().compareTo(r2.area());
  
      }
  }
  
  public class Main {
  
      public static void main(String[] args) {
  
         ArrayList&lt;Rectangle&gt; rectsArea = new ArrayList&lt;&gt;();
         Scanner input = new Scanner(System.in);
         SComparator comparator = new SComparator();
  
         while(true){
              System.out.print("A = ");
              Double a = input.nextDouble();
              System.out.print("B = ");
              Double b = input.nextDouble();
              Rectangle.Rectangle(a,b);
              rectsArea.sort(comparator);
              if (a  == 0) {
                  System.out.println("Sorted ArrayList:");
                  System.out.println(rectsArea);
                  break;
              }
          }
      }
  }
  </code></pre>
  
  <p>Rectangle:</p>
  
  <pre><code>public class Rectangle {
      public Double c, d;
  
      public Rectangle(Double c, Double d) {
          this.c = c;
          this.d = d;
      }
  
      Double area() {
          return c * d;
      }
  }
  </code></pre>
  
  <p>It should return sorted ArrayList</p>