title: Need to call upon method in different class?
body: <p>Having trouble calling methods from a different class***
  Here is my first class. It sets freezing and boiling points for different elements</p>
  
  <pre><code>public class FreezingPoint {
  private int temperature;
  
  
  public double getTemperature()
  {
      return temperature;
  }
  
  public int setTemperature()
  {
      return temperature;
  }
  
  public boolean isEthylFreezing()
     {
        boolean status;
  
        if (temperature &lt;= -173.0)
           status = true;
        else
           status = false;
  
        return status;
     }
  
  
  public boolean isEthylBoiling()
     {
        boolean status;
  
        if (temperature &gt;= 172.0)
           status = true;
        else
           status = false;
  
        return status;
     }
  
  
  public boolean isOxygenFreezing()
     {
        boolean status;
  
        if (temperature &lt;= -362.0)
           status = true;
        else
           status = false;
  
        return status;
     }
  
  
  public boolean isOxygenBoiling()
     {
        boolean status;
  
        if (temperature &gt;= -306.0)
           status = true;
        else
           status = false;
  
        return status;
     }
      public boolean isWaterFreezing()
     {
        boolean status;
  
        if (temperature &lt;= 32)
           status = true;
        else
           status = false;
  
        return status;
     }
  
  public boolean isWaterBoiling()
     {
        boolean status;
  
        if (temperature &gt;= 212)
           status = true;
        else
           status = false;
  
        return status;
     }
  }
  </code></pre>
  
  <p>Now I want a separate class that tests these methods. I want the user to enter the temperature and have the output display a list of substances that will freeze at that temperature and those that boil at that temperature</p>
  
  <p>Having trouble with that part, because I know my getters or setters or methods aren't set up correctly. I know I have to add arguments or constructor but I'm a little rusty its been awhile
  So if someone can point me in the right direction in order to display the list of substances that match my criteria^ Heres what I want to build off</p>
  
  <pre><code>import java.util.Scanner;
  
  
  
      public class TestFreezingPoint {
           public static void main(String[] args){
  
  
           Scanner in = new Scanner(System.in);
           System.out.printf("Enter a temperature");
           double temperature = in.nextInt();
           boolean repeat = true;
           while (repeat) {
           }
      }
  }
  </code></pre>
  
  <p>Any help appreciated, thanks</p>