如何从静态函数中将Private布尔变量设置为true / false?

时间:2017-09-30 05:32:18

标签: java

我已声明一个(全局)私有布尔变量isLocked,我需要从静态函数将其设置为truefalse,而不违反静态规则。我怎么能这样做?

if (verAccount != null && verAccount.nSequentialFailedAuthenticationAttempts==3) {
    System.out.println("YOUR ACCOUNT IS LOCKED :(");
    isLocked.equals(true);
}`

0 个答案:

没有答案