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

php - How to serve a file for download on WordPress -

how to share virtual sharepoint server and get it in host windows and visual studio? -