im very new to java and i need some help with my code.. theres a particular part in this code to where it gives me an error:
public static boolean readPassword(String PASSWORD_ONE, String PASSWORD_TWO, int MAX_ATTEMPTS)
String USER_PASSWORD = TextInputOutput.simpleDialogBox("Enter password: ");
for (CURRENT_ATTEMPT = 0; CURRENT_ATTEMPT <= MAX_ATTEMPTS; CURRENT_ATTEMPT++)
if (USER_PASSWORD.equals(PASSWORD_ONE) || USER_PASSWORD.equals(PASSWORD_TWO))
i am using Eclipse, and it says that "This method must return a type boolean." this code, i thought, does return a type boolean. this is a basic password check and this particular method is called upon by another driver class, but we dont need to go there. what is wrong with that part of the code? thanks!