Created a proper UserGroup class with attributes to get all users from array list so that the populate panel function can go through all users and populate the panels based on the total number of users
This commit is contained in:
1 parent
8245777db1
commit
0b66878649
3 files changed
+21
-7
No files matched your search
@@ -9,7 +9,7 @@ public class User {
|
||||
private String address;
|
||||
|
||||
|
||||
private String getUserAttribute(User user, String panelName) {
|
||||
public String getUserAttribute(String panelName) {
|
||||
return switch (panelName.toLowerCase()) {
|
||||
case "title" -> user.getTitle();
|
||||
case "name" -> user.getName();
|
||||
|
||||
Reference in new issue
Block a user