From a572688c0fbda902d9d13869b083d7bd0693ce34 Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Tue, 28 Jul 2026 21:44:14 +0300 Subject: [PATCH 1/4] made the java block interactive --- source/ch4_conditionals.ptx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ch4_conditionals.ptx b/source/ch4_conditionals.ptx index 0b32d00..eac50fc 100644 --- a/source/ch4_conditionals.ptx +++ b/source/ch4_conditionals.ptx @@ -58,7 +58,7 @@ if score >= 90: - + public class IfElseExample { public static void main(String[] args) { From 28bb0c2a4fb79b6c89edcf86f085fabfdc9ed5b0 Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Tue, 28 Jul 2026 21:49:36 +0300 Subject: [PATCH 2/4] added listing to blocks --- source/ch4_conditionals.ptx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/ch4_conditionals.ptx b/source/ch4_conditionals.ptx index eac50fc..a97b00b 100644 --- a/source/ch4_conditionals.ptx +++ b/source/ch4_conditionals.ptx @@ -48,7 +48,8 @@ if score >= 90: Using the <c>if</c> - <c>else</c> Statement

The Java equivalent follows the same syntactical rules as before.

- + + age = 16 if age >= 18: @@ -57,8 +58,10 @@ if score >= 90: print("You are not yet eligible to vote.") + - + + public class IfElseExample { public static void main(String[] args) { @@ -72,6 +75,7 @@ if score >= 90: } +
From a623e6cad194f03f2407870e4cb50cfaee8f9c1f Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Tue, 28 Jul 2026 22:16:49 +0300 Subject: [PATCH 3/4] added listing to the text --- source/ch4_conditionals.ptx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/ch4_conditionals.ptx b/source/ch4_conditionals.ptx index a97b00b..925a19a 100644 --- a/source/ch4_conditionals.ptx +++ b/source/ch4_conditionals.ptx @@ -47,7 +47,7 @@ if score >= 90:
Using the <c>if</c> - <c>else</c> Statement -

The Java equivalent follows the same syntactical rules as before.

+ shows how Python the if - elsestatement is written in Python. @@ -59,7 +59,8 @@ if score >= 90: - + +

is Java equivalent that follows the same syntactical rules as before.

From fe0ef24dd30f60b140d80f5317d30bacc4959071 Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Tue, 28 Jul 2026 22:19:38 +0300 Subject: [PATCH 4/4] fixed display --- source/ch4_conditionals.ptx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ch4_conditionals.ptx b/source/ch4_conditionals.ptx index 925a19a..9aa166a 100644 --- a/source/ch4_conditionals.ptx +++ b/source/ch4_conditionals.ptx @@ -47,7 +47,7 @@ if score >= 90:
Using the <c>if</c> - <c>else</c> Statement - shows how Python the if - elsestatement is written in Python. +

shows how the if - elsestatement is written in Python.