0

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);
}`
Szymon Stepniak
  • 40,216
  • 10
  • 104
  • 131
byoshi
  • 1
  • 2

0 Answers0