سؤال

if I have two variables

boolean k = true;
boolean m = false;

what does the following do;

k &= m;
هل كانت مفيدة؟

المحلول

That's the compound assignment operator, which is equivalent to:

k = (boolean)(k & m);
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top