Skip to content

Commit a26e35b

Browse files
myucesanjmrunkle
andauthored
Update introduction.md (exercism#2036)
* Update introduction.md Added comparison operator example, removed the reference to truthy values as it will only confuse new programmers * Update concepts/numbers/introduction.md Co-authored-by: Jason Runkle <jmrunkle@gmail.com> Co-authored-by: Jason Runkle <jmrunkle@gmail.com>
1 parent 09f3833 commit a26e35b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

concepts/numbers/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ There are two different types of numbers in Java:
77

88
The two most common numeric types in Java are `int` and `double`. An `int` is a 32-bit integer and a `double` is a 64-bit floating-point number.
99

10-
Arithmetic is done using the standard arithmetic operators. Numbers can be compared using the standard numeric comparison operators and the equality (`==`) and inequality (`!=`) operators.
10+
Arithmetic is done using the standard arithmetic operators. Numbers can be compared using the standard numeric comparison operators (eg. `5 > 4` and `4 <= 5`) and the equality (`==`) and inequality (`!=`) operators.
1111

1212
Java has two types of numeric conversions:
1313

@@ -30,4 +30,4 @@ if (x == 5) {
3030
}
3131
```
3232

33-
The condition of an `if` statement must be of type `boolean`. Java has no concept of _truthy_ values.
33+
The condition of an `if` statement must be of type `boolean`.

0 commit comments

Comments
 (0)