rt

An obligatory Java Project
Log | Files | Refs | LICENSE

commit 742456d2f846b8f471284b8e5196cf0da7ddf932
parent 1b45978d4d713907e39096398fbc452215dc6a56
Author: zerous Naveen Narayanan <zerous@nocebo.space>
Date:   Fri, 13 Dec 2019 18:43:26 +0100

Fix resetUsers and Add resetScores

Diffstat:
Mscript.java | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/script.java b/script.java @@ -28,10 +28,15 @@ public class script { } public synchronized void resetUsers() { - for (int i = 0, j = 0; i < 3; i++) + for (int i = 0, j = 1; i < 3; i++) roles[i][j] = ""; } + public synchronized void resetScores() { + for (int i = 0, j = 2; i < 3; i++) + roles[i][j] = ""; + } + public String getAssignedUsers(Lock lock) { lock.lock(); try {