public String getTestData() { Student newAmy = studentRepository.findByUsername("0002"); String ret = "New Amy's name: " + newAmy.getFirstName() + " " + newAmy.getLastName(); System.out.println(ret); return ret; }
private String getStudentInfo(String username) { Student stu = studentRepository.findByUsername(username); String ret = "Student username: "******", password: "******", name: " + stu.getFirstName() + " " + stu.getLastName() + "\n"; return ret; }