title: computeRatio() method not working in newly created class
body: <p>Beginner Java problem. I have an assignment that requires me to create a new class and in that class is a computeRatio() method that divides variables LDL by HDL and prints out the ratio. I can't seem to get the calculation to work and print out. I'll post the code I have an the output I get. I appreciate any guidance you can give.</p>
  
  <p>'public class SimonChristopher_Checkup {</p>
  
  <pre><code>private int patient;
  private int systolic;
  private int diastolic;
  private int ldl;
  private int hdl;
  
  public static void computeRatio(int ldl, int hdl) { // Divides LDL by HDL
      // to return ratio
      double ratio = ldl/hdl;
      System.out.println("The ratio of good and bad cholesterol is " + ratio + ".");
  }
  
  public SimonChristopher_Checkup(int p, int s, int d, int l, int h) { // constructor
      patient = p;
      systolic = s;
      diastolic = d;
      ldl = l;
      hdl = h;
  }
  
  public int getPatient() { // accessor (getters)
      return patient;
  }
  
  public void setPatient(int p) { // mutator (setter)
      if (p &gt; 0 &amp;&amp; p &lt;= 100) {
          patient = p;
      }
  }
  
  public int getSystolic() { // accessor (getters)
      return systolic;
  }
  
  public void setSystolic(int s) { // mutator (setter)
      if (s &gt;= 100 &amp;&amp; s &lt;= 150) {
          systolic = s;
      }
  }
  
  public int getDiastolic() { // accessor (getters)
      return diastolic;
  }
  
  public void setDiastolic(int d) { // mutator (setter)
      if (d &gt;= 50 &amp;&amp; d &lt;= 120) {
          diastolic = d;
      }
  }
  
  public int getLdl() { // accessor (getters)
      return ldl;
  }
  
  public void setLdl(int l) { // mutator (setter)
      {
          ldl = l;
      }
  }
  
  public int getHdl() { // accessor (getters)
      return hdl;
  }
  
  public void setHdl(int h) { // mutator (setter)
      {
          hdl = h;
      }
  }
  
  public String toString() { // mandatory convention: returns a String object
                              // representation
      String result;
      result = "Patient number: " + patient + "\n" + "Systolic: " + systolic + "\n" + "Diastolic: " + diastolic + "\n"
              + "LDL: " + ldl + "\n" + "HDL: " + hdl + "\n"
              + "HDL is known as good chloresterol. A ratio of 3.5 or better is considered optimal.";
      return result;
  
  }
  </code></pre>
  
  <p>}
  `
  public class Simon_TestCheckup {</p>
  
  <pre><code>public static void main(String[] args) {
  
      SimonChristopher_Checkup patient1 = new SimonChristopher_Checkup(223, 100, 80, 105, 60);
      SimonChristopher_Checkup patient2 = new SimonChristopher_Checkup(244, 102, 76, 101, 62);
  
  
  
      System.out.println(patient1);
      System.out.println("--------------------------------------------------------");
      System.out.println(patient2);
  }
  </code></pre>
  
  <p>}
      When I run TestCheckup I get the following output:</p>
  
  <p>Patient number: 223
  Systolic: 100
  Diastolic: 80
  LDL: 105
  HDL: 60</p>
  
  <h2>HDL is known as good chloresterol. A ratio of 3.5 or better is considered optimal.</h2>
  
  <p>Patient number: 244
  Systolic: 102
  Diastolic: 76
  LDL: 101
  HDL: 62
  HDL is known as good chloresterol. A ratio of 3.5 or better is considered optimal.</p>