title: Error, method cannot be applied to given types
body: <p>The code is supposed to ask for the number of accidents and determine which of the five regions has the least amount of accidents and print the number of accidents and the region. I'm fairly new to java and I'm having trouble with this error. It says method getNumAccidents in class fourthHomework cannot be applied to given types; required: double found: no arguments reason: actual and formal lists differ in length. How do I fix this issue?</p>
  
  <pre><code>import java.util.*;
  public class fourthHomework
  {
  public static void main(String args[]) {
  double smallest = 0;
  double north = getNumAccidents();
  double south = getNumAccidents();
  double east = getNumAccidents();
  double west = getNumAccidents();
  double central = getNumAccidents();
  
  getNumAccidents(smallest);
  findLowest(north, south, east, west, central, smallest);
  
  
  }
  public static double getNumAccidents(double smallest) {
  System.out.println("Please enter all accidents as positive numbers.");
  Scanner input = new Scanner(System.in);
  System.out.print("Please enter the amount of accidents: ");
  smallest = input.nextDouble();
  }
  
  public static void findLowest(double north, double south, double east, double west, double central, double smallest) {
  System.out.println("The lowest amount of accidents this year was " +smallest);
  if (north == smallest)
  {
      System.out.println("The region that had the least amount of accidents was the north.");
  }
  
  if (south == smallest)
  {
      System.out.println("The region that had the least amount of accidents was the south.");
  }
  
  if (east == smallest)
  {
      System.out.println("The region that had the least amount of accidents was the east.");
  }
  
  if (west == smallest)
  {
      System.out.println("The region that had the least amount of accidents was the west.");
  }
  
  if (central == smallest)
  {
      System.out.println("The region that had the least amount of accidents was the central region.");
  }
  </code></pre>
  
  <p>}
  }</p>