Created buffered Reader, edited it so that it uses the first two parts of a line to determine which section it is to be in.

This commit is contained in:
bobbert committed 2025-04-02 14:24:17 +01:00
1 parent e48e5305f3
commit faeab294c0
3 files changed
+51 -21

No files matched your search

+4 -3
View File
@@ -27,9 +27,10 @@ public class UserGroup {
}
public User getUser(int index) {
if (index >= 0 && index < users.size()) {
return users.get(index);
// Expand the list if necessary to accommodate the requested index
while (index >= users.size()) {
users.add(new User());
}
return null;
return users.get(index);
}
}