title: Having trouble with java class methods
body: <p>ok so my assignment I'm supposed to write a class that stores a temperature that the user gives and checks it with the set parameters to see if Ethy/Oxygen/Water are either freezing or boiling and then display it at the end which ones will be freezing/boiling at the temperature that they entered. I have the majority of both the class and tester completed but I'm getting several errors on my code. I'm not asking anyone to give me the answer but if you could tell me what I'm doing wrong I would greatly appreciate it. Here is my code for class: </p>
  
  <pre><code>public class FreezingBoilingPoints {
  
      private int temperature;
  
      public FreezingBoilingPoints(int temp) {
          temperature = temp;
      }
  
      public void setTemperature(int temp) {
          temperature = temp;
      }
  
      public int getTemperature() {
          return temperature;
      }
  
      private Boolean isEthylFreezing(int temperature) {
          if (temperature &lt;= -173) {
              return true;
          } else {
              return false;
          }
      }
  
      private Boolean isEthylBoiling(int temperature) {
          if (temperature &gt;= 172) {
              return true;
          } else {
              return false;
          }
      }
  
      private Boolean isOxygenFreezing(int temperature) {
          if (temperature &lt;= -362) {
              return true;
          } else {
              return false;
          }
      }
  
      private Boolean isOxygenBoiling(int temperature) {
          if (temperature &gt;= -306) {
              return true;
          } else {
              return false;
          }
      }
  
      private Boolean isWaterFreezing(int temperature) {
          if (temperature &lt;= 32) {
              return true;
          } else {
              return false;
          }
      }
  
      private Boolean isWaterBoiling(int temperature) {
          if (temperature &gt;= 212) {
              return true;
          } else {
              return false;
          }
      }
  
      public String showTempinfo() {
          if (isEthylFreezing()) {
              System.out.println("Ethyl will freeze");
          }
  
          if (isEthylBoiling()) {
              System.out.println("Etheyl will boil");
          }
  
          if (isOxygenFreezing()) {
              System.out.println("Oxygen will freeze");
          }
  
          if (isOxygenBoiling()) {
              System.out.println("Oxygen will Boil");
          }
  
          if (isWaterFreezing()) {
              System.out.println("Water will freeze");
          }
  
          if (isWaterBoiling()) {
              System.out.println("Water will boil");
          }
      }
  }
  </code></pre>
  
  <p>and the code for my tester is below:</p>
  
  <pre><code>import java.util.Scanner;
  
  public class FreezingBoilingTester {
      public static void main(String[] args) {
          int temperature;
  
          FreezingBoilingPoints temp1 = new FreezingBoilingPoints(0);
  
          Scanner scan = new Scanner(System.in);
          System.out.println("Please enter a temperature: ");
          temperature = scan.nextInt();
  
          System.out.println(showTempinfo());
      }
  }
  </code></pre>