Skip to content

Commit 8f4791e

Browse files
committed
made the two conditions the same
1 parent d4bf0cd commit 8f4791e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

source/ch4_conditionals.ptx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ if score >= 90: # Note the colon at the end of the line
3030
<code>
3131
public class SimpleIfExample {
3232
public static void main(String[] args) {
33-
int score = 70;
34-
if (score &lt;= 70) { // Note the parentheses and curly braces
35-
System.out.println("Needs work!");
33+
int score = 95;
34+
if (score &gt;= 90) { // Note the parentheses and curly braces
35+
System.out.println("Excellent work!");
3636
}
3737
}
3838
}

0 commit comments

Comments
 (0)