333435363738394041424344
private String username; private String greeting; public void greet() { User user = userDao.getForUsername(username); if (user != null) { greeting = "Hello, " + user.getFirstName() + " " + user.getLastName() + "!"; } else { greeting = "No such user exists! Use 'emuster' or 'jdoe'"; } }