Example #1
0
 public List<String> getNames() {
   names = new ArrayList<>();
   for (Student student : getStudentList()) {
     names.add(student.getUsername());
   }
   return names;
 }
Example #2
0
 public String login() {
   for (Student student : getStudentList()) {
     if (selectStudentName.equals(student.getUsername())) {
       us.setLoggedIn(student);
     }
   }
   return "menu";
 }