We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcc49d5 commit cad202fCopy full SHA for cad202f
06-Operators.md
@@ -129,17 +129,17 @@ false
129
130
### The Or Operator
131
132
-```&&``` returns ```true``` if at least one of the values on both sides of it are true:
+```||``` returns ```true``` if at least one of the values on both sides of it are true:
133
```
134
-boolean myBool = false && true;
+boolean myBool = false || true;
135
System.out.println(myBool);
136
137
138
true
139
140
- ```&&``` returns ```false``` if neither of the boolean values on both sides of it are true:
+ ```||``` returns ```false``` if neither of the boolean values on both sides of it are true:
141
142
-boolean myBool = false && false;
+boolean myBool = false || false;
143
144
145
0 commit comments