title: "Error: non-static variable this cannot be referenced from a static context" in calculation class
body: <p>My instance of the class "Conversion" returns this error when I compile the program.</p>
  
  <pre><code>import java.util.Scanner;
  
  public class Convert {
  
      private class Conversion{
  
          public String getConversion(int inchInput) {
              int yards = (inchInput - (inchInput % 36)) / 36;
              int feet =  (inchInput % 36) - ((inchInput % 36) % 12);
              int inches = (inchInput % 36) % 12;
  
              return yards + "yards, " + feet + "feet, and " + inches + "inches.";
          }
  
      } // end of class Conversion
  
      public static void main( String[] args ) {
          Scanner scanner = new Scanner(System.in);
          int inchInput;
          Conversion conversion;
          conversion = new Conversion();
  
          // prompt
          System.out.println("Please enter an amout of inches (integer): ");
          inchInput = scanner.nextInt();
          String output = conversion.getConversion(inchInput);
      } // end of method main()
  } // enf of class Convert
  </code></pre>