public double getAvg() { double hits=getHits(); double total=0; for (int i=0;i<numRows;i++) { total+=monitors[i].getTotal(); } if (hits==0) return 0; else return total/hits; }
@Override public double getAvg() { double hits=getHits(); double total=0; for (int i=0;i<numRows;i++) { total+=monitors[i].getTotal(); } if (hits==0) return 0; else return total/hits; }