Skip to content

Commit cad202f

Browse files
authored
Update 06-Operators.md
Fix OR operator
1 parent fcc49d5 commit cad202f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

06-Operators.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,17 +129,17 @@ false
129129

130130
### The Or Operator
131131

132-
```&&``` returns ```true``` if at least one of the values on both sides of it are true:
132+
```||``` returns ```true``` if at least one of the values on both sides of it are true:
133133
```
134-
boolean myBool = false && true;
134+
boolean myBool = false || true;
135135
System.out.println(myBool);
136136
```
137137
```
138138
true
139139
```
140-
```&&``` returns ```false``` if neither of the boolean values on both sides of it are true:
140+
```||``` returns ```false``` if neither of the boolean values on both sides of it are true:
141141
```
142-
boolean myBool = false && false;
142+
boolean myBool = false || false;
143143
System.out.println(myBool);
144144
```
145145
```

0 commit comments

Comments
 (0)