From 0eab2e30eb9aa2acbad55dc7482ae3162e224efa Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Wed, 12 Aug 2026 00:27:28 +0300 Subject: [PATCH 01/14] fixed error --- source/ch2_firstjavaprogram.ptx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ch2_firstjavaprogram.ptx b/source/ch2_firstjavaprogram.ptx index 7f1669d..18392e9 100644 --- a/source/ch2_firstjavaprogram.ptx +++ b/source/ch2_firstjavaprogram.ptx @@ -374,7 +374,7 @@ Hello World!
Summary & Reading Questions -

    +

    1. Java programs must be compiled before execution, unlike Python which is interpreted directly.

    2. From e04249f96273979579491630c6f38299feb4512d Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Wed, 12 Aug 2026 00:32:42 +0300 Subject: [PATCH 02/14] made xml:id more descriptive --- source/ch2_firstjavaprogram.ptx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/ch2_firstjavaprogram.ptx b/source/ch2_firstjavaprogram.ptx index 18392e9..988d7c9 100644 --- a/source/ch2_firstjavaprogram.ptx +++ b/source/ch2_firstjavaprogram.ptx @@ -398,7 +398,7 @@ Hello World!

    - +

    Which of the following must be true of every Java program?

    @@ -421,7 +421,7 @@ Hello World!
    - +

    What is the purpose of the javac command?

    @@ -444,7 +444,7 @@ Hello World!
    - +

    What symbol does Java use to indicate the end of a statement?

    From dd70c1ddedb503da27d23c4987fdcb6258b02202 Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Wed, 12 Aug 2026 00:37:20 +0300 Subject: [PATCH 03/14] fixed error in ch3 --- source/ch3_javadatatypes.ptx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ch3_javadatatypes.ptx b/source/ch3_javadatatypes.ptx index a08b796..eeeb724 100644 --- a/source/ch3_javadatatypes.ptx +++ b/source/ch3_javadatatypes.ptx @@ -1172,7 +1172,7 @@ public class HistoMap {
    Summary & Reading Questions -

      +

      1. All variables must be declared with their type before use in Java due to static typing.

      2. From 94374a52bf7b421e7f02c520f72556c3f9ac2ad4 Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Wed, 12 Aug 2026 00:41:44 +0300 Subject: [PATCH 04/14] fixed xml:id --- source/ch3_javadatatypes.ptx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ch3_javadatatypes.ptx b/source/ch3_javadatatypes.ptx index eeeb724..52e7566 100644 --- a/source/ch3_javadatatypes.ptx +++ b/source/ch3_javadatatypes.ptx @@ -1195,7 +1195,7 @@ public class HistoMap {

        Maps (HashMap and TreeMap) are Java's equivalent to Python dictionaries for storing key-value pairs.

      - +

      What is the correct way to declare an ArrayList that will hold String objects in Java?

      From a0ef2bd77b916a4a848e54fd962ced31c75317b0 Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Wed, 12 Aug 2026 00:48:37 +0300 Subject: [PATCH 05/14] removed hardcoded xml:id --- source/ch3_javadatatypes.ptx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ch3_javadatatypes.ptx b/source/ch3_javadatatypes.ptx index 52e7566..8b4b198 100644 --- a/source/ch3_javadatatypes.ptx +++ b/source/ch3_javadatatypes.ptx @@ -1170,7 +1170,7 @@ public class HistoMap { -
      +
      Summary & Reading Questions

      1. @@ -1235,7 +1235,7 @@ public class HistoMap { - +

        The process of automatically converting between primitive types and their Object wrapper classes in Java is called:

        From daa6309f00db99a208de84571fccfeb66c79fd24 Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Fri, 14 Aug 2026 17:48:56 +0300 Subject: [PATCH 06/14] removed the error --- 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 1f99114..49865c6 100644 --- a/source/ch4_conditionals.ptx +++ b/source/ch4_conditionals.ptx @@ -611,7 +611,7 @@ public class Ternary {
      Summary & Reading Questions -

        +

        1. Java requires parentheses around the condition and curly braces for code blocks in if statements, unlike Python which uses indentation alone.

        2. From 154ab33ae72be24e95c334e98a46d0e102551171 Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Sat, 15 Aug 2026 12:31:34 +0100 Subject: [PATCH 07/14] fixed hardcoded xml-id --- source/ch4_conditionals.ptx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ch4_conditionals.ptx b/source/ch4_conditionals.ptx index 49865c6..ae66208 100644 --- a/source/ch4_conditionals.ptx +++ b/source/ch4_conditionals.ptx @@ -609,7 +609,7 @@ public class Ternary {

      -
      +
      Summary & Reading Questions

      1. @@ -630,7 +630,7 @@ public class Ternary {

      - +

      Which is a correct Java if statement syntax?

      From 73f1d3866797be623617db6ee0b144182dd58ac3 Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Sat, 15 Aug 2026 12:40:08 +0100 Subject: [PATCH 08/14] fixed hardcoded xmlid --- source/ch5_loopsanditeration.ptx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ch5_loopsanditeration.ptx b/source/ch5_loopsanditeration.ptx index c0e87a1..098659e 100644 --- a/source/ch5_loopsanditeration.ptx +++ b/source/ch5_loopsanditeration.ptx @@ -351,7 +351,7 @@ public class DoWhileExample {
      -
      +
      Summary & Reading Questions

        @@ -376,7 +376,7 @@ public class DoWhileExample {

      - + From 015dd6cda35fb8a4442f0ea1f9319d2e03e10493 Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Sat, 15 Aug 2026 12:40:47 +0100 Subject: [PATCH 09/14] fixed build error --- source/ch5_loopsanditeration.ptx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ch5_loopsanditeration.ptx b/source/ch5_loopsanditeration.ptx index 098659e..769a358 100644 --- a/source/ch5_loopsanditeration.ptx +++ b/source/ch5_loopsanditeration.ptx @@ -354,7 +354,7 @@ public class DoWhileExample {
      Summary & Reading Questions

      -

        +
        1. Java’s for loop syntax allows you to control loop initialization, condition, and update in one line using the format for (init; condition; update).

        2. From 46ce8387fba055299d800816451ed73c69d6e6d2 Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Sat, 15 Aug 2026 12:44:21 +0100 Subject: [PATCH 10/14] fixed build error --- source/ch7_recursion.ptx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ch7_recursion.ptx b/source/ch7_recursion.ptx index f04f71c..47facf1 100644 --- a/source/ch7_recursion.ptx +++ b/source/ch7_recursion.ptx @@ -366,7 +366,7 @@ public class ArrayProcessor {
          Summary & Reading Questions -

            +

            1. Recursion solves problems by defining a base case and a recursive step; each call reduces the problem size until the base case is reached.

            2. From fbd933fc98812975240eead930b4da67716255ea Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Sat, 15 Aug 2026 12:49:01 +0100 Subject: [PATCH 11/14] fixed build error --- source/ch8_filehandling.ptx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ch8_filehandling.ptx b/source/ch8_filehandling.ptx index a610f37..c53f6fe 100644 --- a/source/ch8_filehandling.ptx +++ b/source/ch8_filehandling.ptx @@ -575,7 +575,7 @@ public class DeleteFile {
              Summary & Reading Questions -

                +

                1. To work with files in Java, you must import specific classes like java.io.File, java.io.FileWriter, and handle exceptions such as IOException.

                2. From d11003935ab11136ee02a8c3d09a99c92a0bde8c Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Sat, 15 Aug 2026 12:54:35 +0100 Subject: [PATCH 12/14] fixed build error --- source/ch8_filehandling.ptx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ch8_filehandling.ptx b/source/ch8_filehandling.ptx index c53f6fe..5088761 100644 --- a/source/ch8_filehandling.ptx +++ b/source/ch8_filehandling.ptx @@ -573,7 +573,7 @@ public class DeleteFile {

              -
              +
              Summary & Reading Questions

              1. @@ -592,7 +592,7 @@ public class DeleteFile {

                You can delete a file using the delete() method on a File object, which returns true if successful.

              - +

              Which import is needed to create and manipulate files in Java?

              From e8d7d360687db7b20c738da4329010521b169bc2 Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Sat, 15 Aug 2026 12:56:32 +0100 Subject: [PATCH 13/14] fuxed xml:id --- source/ch9_commonmistakes.ptx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/ch9_commonmistakes.ptx b/source/ch9_commonmistakes.ptx index 64b59cd..b9150eb 100644 --- a/source/ch9_commonmistakes.ptx +++ b/source/ch9_commonmistakes.ptx @@ -1,7 +1,7 @@ - + Common Mistakes @@ -219,7 +219,7 @@
              Summary & Reading Questions -

                +

                1. In Java, every variable must be declared with its type before use; undeclared variables cause compilation errors.

                2. @@ -240,7 +240,7 @@

                - +

                What happens if you use a variable in Java without declaring it first?

                @@ -263,7 +263,7 @@
                - +

                Why must you include import statements for classes like Scanner?

                @@ -286,7 +286,7 @@
                - +

                What warning occurs when you use an ArrayList without specifying a type?

                From 58f61e87cc3b72fd929eee4ca2f8d8b86f35dd4a Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Sat, 15 Aug 2026 12:58:01 +0100 Subject: [PATCH 14/14] fixed wrong attributed xml:id --- source/ch2_firstjavaprogram.ptx | 2 +- source/ch3_javadatatypes.ptx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ch2_firstjavaprogram.ptx b/source/ch2_firstjavaprogram.ptx index 988d7c9..035df2c 100644 --- a/source/ch2_firstjavaprogram.ptx +++ b/source/ch2_firstjavaprogram.ptx @@ -81,7 +81,7 @@ $ ls -l Hello.*

                The command javac compiles our java source code into compiled byte code and saves it in a file called Hello.class. Hello.class is a binary file so you won’t learn much if you try to examine the class file with an editor. - Hopefully you didn’t make any mistakes, but if you did you may want to consult the section for helpful hints on compiler errors. + Hopefully you didn’t make any mistakes, but if you did you may want to consult the section for helpful hints on compiler errors.

                diff --git a/source/ch3_javadatatypes.ptx b/source/ch3_javadatatypes.ptx index 8b4b198..6c5b3c2 100644 --- a/source/ch3_javadatatypes.ptx +++ b/source/ch3_javadatatypes.ptx @@ -274,7 +274,7 @@ public class TempConv {

                - When you see the first kind of error in , where the symbol is on the left side of the equals sign, it usually means that you have not declared the variable. If you have ever tried to use a Python variable that you have not initialized the second error message will be familiar to you. The difference here is that we see the message before we ever try to test our program. More common error messages are discussed in the section . + When you see the first kind of error in , where the symbol is on the left side of the equals sign, it usually means that you have not declared the variable. If you have ever tried to use a Python variable that you have not initialized the second error message will be familiar to you. The difference here is that we see the message before we ever try to test our program. More common error messages are discussed in the section .