*i am having trouble with calling methods and need to grasp the concept in order to pass a class.
the program was supposed to collect from the user their systolic, diastolic, ldl and hdl and then the compute ratio method
was supposed to calculate the ratio of ldl/hdl. and im not sure what's wrong.
import javax.swing.JOptionPane;
import java.util.Scanner;
public class checkup
{
public static void main(String[] args)
{
String name;
int patientnumber=335;
int systolic = 85;
int diastolic=120;
int ldl=30;
int hdl=60;
public int getsystolic()
{
return systolic;
}
public int getdiastolic()
{
return diastolic;
}
public int getldl()
{
return ldl;
}
public int gethdl()
{
return hdl;
}
Scanner inputDevice = new Scanner(System.in);
System.out.print("Please enter your systolic >>");
systolic = inputDevice.nextInt();
System.out.print("Please enter your diastolic >>");
diastolic = inputDevice.nextInt();
System.out.print("Please enter your ldl >>");
ldl = inputDevice.nextInt();
System.out.print("Please enter your hdl >>");
hdl = inputDevice.nextInt();
}
public static int computeRatio(int ldl, int hdl)
{
int result=0;
result = ldl/hdl;
return result;
}
}