title: Java error: constructor in class cannot be applied to given types
body: <p>I just added the constructor <em>Building</em> and I thought everything would work fine, but I'm getting an error on line 43. When I create the object, <code>Building b = new Building();</code>, it says I need to have a <code>double</code> and <code>int</code> in the argument, so I did as it said, but I just keep getting more errors. What am I doing wrong?</p>
  <pre><code>// This program lets the user design the area and stories of a building multiple times
  // Author: Noah Davidson
  // Date: February 20, 2014
  
  import java.util.*;
  
  public class Building // Class begins
  {
      static Scanner console = new Scanner(System.in);
  
      double area; // Attributes of a building
      int floors;
  
      public Building(double squarefootage, int stories)
      {
          area = squarefootage;
          floors = stories;
      }
  
      void get_squarefootage() // User enters the area of floor
      {
          System.out.println(&quot;Please enter the square footage of the floor.&quot;);
          area = console.nextDouble();
      }
  
      void get_stories() // The user enters the amount of floors in the building
      {
          System.out.println(&quot;Please enter the number of floors in the building.&quot;);
          floors = console.nextInt();
      }
  
      void get_info() // This function prints outs the variables of the building
      {
          System.out.println(&quot;The area is: &quot; + area + &quot; feet squared&quot;);
          System.out.println(&quot;The number of stories in the building: &quot; + floors + &quot; levels&quot;);
      }
  
      public static void main(String[] args) // Main starts
      {
          char ans; // Allows for char
  
          do{ // 'do/while' loop starts so user can reiterate
              // the program as many times as they desire
  
              Building b = new Building(); // Creates the object b
              b.get_squarefootage(); // Calls the user to enter the area
              b.get_stories(); // Calls the user to enter the floors
              System.out.println(&quot;---------------&quot;);
              b.get_info(); // Displays the variables
              System.out.println(&quot;Would you like to repeat this program? (Y/N)&quot;);
              ans = console.next().charAt(0); // The user enters either Y or y until
                                              // they wish to exit the program
  
          } while(ans == 'Y' || ans == 'y'); // Test of do/while loop
      }
  }
  </code></pre>