标签: java
我已声明一个(全局)私有布尔变量isLocked,我需要从静态函数将其设置为true或false,而不违反静态规则。我怎么能这样做?
isLocked
true
false
if (verAccount != null && verAccount.nSequentialFailedAuthenticationAttempts==3) { System.out.println("YOUR ACCOUNT IS LOCKED :("); isLocked.equals(true); }`