title: Why doesn't my temperature conversion calculate correctly?
body: <p>I am trying to take my Temperature in Fahrenheit and convert it to Celsius. When I call my toCelsius() method it calculates the Temperature to 0 degrees celsius.</p>
  
  <p>Here is my conversion method</p>
  
  <pre><code>    public Temperature toCelsius()
      {
      Temperature answer = new Temperature();
      switch(tempType)
      {
      case 'C':
          answer =  new Temperature(this.temp,'C');
          return answer;
      case 'F':
          answer =  new Temperature(((this.temp-32)*(5/9)),'C');
          return answer;
  
      case 'K':
          answer =  new Temperature((this.temp-241.15),'C');
          return answer;
  
      default:
          System.out.println("ERROR!");
          break;
  
      }
      return answer;
      }
  </code></pre>
  
  <p>Here is my demo</p>
  
  <pre><code>    public class TempDemo {
  
          public static void main(String[] args) {
  
              Temperature temp1 = new Temperature(122, 'F');
              System.out.println(temp1.toCelsius());
        }
  
      }
  </code></pre>