Skip to content

Hw-1#177

Open
dariiabutorina wants to merge 2 commits into
mate-academy:masterfrom
dariiabutorina:hw-1
Open

Hw-1#177
dariiabutorina wants to merge 2 commits into
mate-academy:masterfrom
dariiabutorina:hw-1

Conversation

@dariiabutorina

Copy link
Copy Markdown

Task 2

(!a && b && !c && d) ||
(!a && !b && c && d);
}

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

*/
public boolean booleanExpression(boolean a, boolean b, boolean c, boolean d) {
return false;
return (a && b && !c && !d) ||

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.

Good start, but try to think how you can make solution less complicated.
Hint:

  • you can use fewer boolean operations (read smth about XOR operation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants