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