make my code more efficient
Hi,
I coded an application and in the application I have this code:
Code:
public void testAtHighHealthRisk(HealthRiskCalculator calc) {
System.out.println("\nTesting atHighHealthRisk");
// TODO: replace the following line with testing of calc.atHighHealthRisk( )
//System.out.println("no testing yet.");
System.out.println(calc.atHighHealthRisk(26, 60));
}
public void testAtMediumHealthRisk(HealthRiskCalculator calc) {
System.out.println("\nTesting atMediumHealthRisk");
// TODO: replace the following line with testing of calc.atMediumHealthRisk( )
//System.out.println("no testing yet.");
System.out.println(calc.atMediumHealthRisk(15,55));
}
public void testOutputAllPatientInfo(HealthRiskCalculator calc) {
System.out.println("\nTesting outputAllPatientInfo");
// TODO: after implementing outputAllPatientInfo:
// comment out the next line and remove the comments from the following block of code
//System.out.println("no testing yet.\n");
calc.outputAllPatientInfo();
}{
Can someone give me advise how to be more efficient.
Thanks to anyone who helps.
Daisy