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

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

c# - MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(3243,9): error MSB4094 -