Question: What test would you add to this method to head off a potential run-time error? public static double computeAvg(double sum, int n) {return sum/n;
What test would you add to this method to head off a potential run-time error?
public static double computeAvg(double sum, int n) {return sum/n;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
