I am making a login page, and i would like it if "Successfull login" appears in the console if the username and password match the database. So i simply added a System.out.println();
in the if statement, but it gets the error "unreachable statement". Why is that? Here is the loop:
if (user.equalsIgnoreCase(userFromDB) && hashedPass.equals(passFromDB)) {
return "Correct username and password!";
System.out.println("Login successfull using username \"" + user + "\"");
}