commit aae8ab3b01beba54ca1deb97278b8a933307a4f0 parent e8c69d6fe94195aa2c0f1331b18c235d3004fee7 Author: zerous Naveen Narayanan <zerous@nocebo.space> Date: Sun, 24 Nov 2019 19:07:14 +0100 Reset tscr every time getAvgscr() is called Diffstat:
M | group.java | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/group.java b/group.java @@ -36,8 +36,18 @@ public class group { } public float getAvgscr() { + tscr = 0.0f; for (int i = 0; i < nelem; i++) tscr += gAccounts[i].getScore(); return tscr/nelem; } + + public void getAccUname() { + String s = "dbg group: "; + for (int i = 0; i < nelem; i++) { + s += " " + gAccounts[i].getUname(); + } + s += " " + nelem; + System.out.println(s); + } }