00:01
For this question, we're asked to write a java program to check if two of three boolean variables are true.
00:06
So let's say we're given x, y, and z.
00:08
All of these are boolean variables.
00:12
We need to check if two out of these three are true.
00:16
So given, let's say these three boolean variables, x, y and z, we're saying if x and y, if x and y, that means...
00:36
So the question here asks us to see, 2 of 3, so we're going to assume exactly 2 out of 3.
00:42
So and, um, oops, and not z, right? so given this, that means x and y are true and z is false, then return true, return true.
01:03
Else if not x, or sorry, we can do x, uh, and not y and z, and z...