java - boolean &= assignment operator meaning -


if have 2 variables

boolean k = true; boolean m = false; 

what following do;

k &= m; 

that's compound assignment operator, equivalent to:

k = (boolean)(k & m); 

Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -