I have declared a (global) private boolean variable isLocked
and I need to set it to true
or false
from a static function without violating the static rule. How can I do that?
if (verAccount != null && verAccount.nSequentialFailedAuthenticationAttempts==3) {
System.out.println("YOUR ACCOUNT IS LOCKED :(");
isLocked.equals(true);
}`