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:
1 parent
e48e5305f3
commit
faeab294c0
3 files changed
+51
-21
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user