title: "cannot find symbol" error when invoking a method using reference of class
body: <p>I feel as if this is super simple but I cant get this to work. I am trying to use this: </p>
  
  <pre><code>import java.util.Scanner;
  import java.lang.Math;
  public class SammysRentalPriceWithMethods
  {
  
  public static void main(String[] args)
  {
  Rental rental = new Rental();
  SammysRentalPriceWithMethods SRPWM = new SammysRentalPriceWithMethods();
  getLogo();
  getContractNum();
  getHoursAndMinutes();
  }
  
  public static void getLogo()
  {
  rental.setlogo();
  }
  
  public static void getContractNum()
  {
  rental.setContractNumber();
  }
  
  public static void getHoursAndMinutes()
  {
  rental.setHoursAndMinutes();
  }
  
  }
  </code></pre>
  
  <p>to call this class and the methods contained inside:</p>
  
  <pre><code>import java.util.Scanner;
  import java.lang.Math;
  public class Rental
  {
  public final int minutes = 60;
  public final double hourlyRate = 40.0;
  private static String contractNum;
  private static double hours;
  private static int minutes2;
  private static double price;
  Scanner Input = new Scanner(System.in);
  
  public static void setlogo()
  {
  System.out.println("*********************************");
  System.out.println("*Sammy's makes it fun in the sun*");
  System.out.println("*********************************");
  }
  
  public static void setContractNumber()
  {
  Scanner Input = new Scanner(System.in);
  System.out.println("Please enter your contract number.");
  contractNum = Input.nextLine();
  }
  
  public static void setHoursAndMinutes()
  {
  int timeOver;
  Scanner Input2 = new Scanner(System.in);
  System.out.println("Please enter the amount of time in minutes you rented the equipment.");
  minutes2 = Input2.nextInt();
  if (minutes2 &gt; 60)
  {hours = (minutes2/60);
  price = (hours * 40);
  timeOver = (minutes2%60);
  price = (price + timeOver);
  System.out.println("You rented the equipment for " + hours + " hours and " + timeOver + " minutes.");
  System.out.println("Your total price is: " + price);
  }
  else if (minutes2 &lt; 60)
  {
  price = (minutes2 * 1);
  System.out.println(price);
  }
  }
  }
  </code></pre>
  
  <p>but the compiler is saying "error: cannot find symbol" on every reference of rental in the SRPWM class. I already called the class in the main method. Any ideas?</p>