diff --git a/src/main/java/core/basesyntax/BooleanExpression.java b/src/main/java/core/basesyntax/BooleanExpression.java index f8cfc8e..32aa402 100644 --- a/src/main/java/core/basesyntax/BooleanExpression.java +++ b/src/main/java/core/basesyntax/BooleanExpression.java @@ -14,6 +14,6 @@ public class BooleanExpression { * без использования конструкций if-else

*/ public boolean booleanExpression(boolean a, boolean b, boolean c, boolean d) { - return false; + return (a ^ b) && (c ^ d) || (a ^ c) && (b ^ d); } }