Here is an example of the return statement in question:
public boolean either24(int[] nums) {
boolean n1 = false;
boolean n2 = false;
for (int i=0;i<nums.length-1;i++)
if (nums[i]==2 && nums[i+1]==2)
n1 = true;
else
if (nums[i]==4 && nums[i+1]==4)
n2 = true;
return !n1 && n2 || n1 && !n2; //<----what is this really doing??
}
What does that line really mean?