Skip to content
Open

Hw-1 #177

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/main/java/core/basesyntax/BooleanExpression.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ public class BooleanExpression {
* <p>Это задание необходимо решать с использованием логических операторов,
* без использования конструкций if-else</p>
*/

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

run mvn clean package and fix checkstyle proplems

}