diff --git a/source/ch2_firstjavaprogram.ptx b/source/ch2_firstjavaprogram.ptx
index 7f1669d..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.
@@ -374,7 +374,7 @@ Hello World!
Summary & Reading Questions
-
+
-
Java programs must be compiled before execution, unlike Python which is interpreted directly.
@@ -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?
diff --git a/source/ch3_javadatatypes.ptx b/source/ch3_javadatatypes.ptx
index a08b796..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 .
@@ -1170,9 +1170,9 @@ public class HistoMap {
-
+
Summary & Reading Questions
-
+
-
All variables must be declared with their type before use in Java due to static typing.
@@ -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?
@@ -1235,7 +1235,7 @@ public class HistoMap {
-
+
The process of automatically converting between primitive types and their Object wrapper classes in Java is called:
diff --git a/source/ch4_conditionals.ptx b/source/ch4_conditionals.ptx
index 1f99114..ae66208 100644
--- a/source/ch4_conditionals.ptx
+++ b/source/ch4_conditionals.ptx
@@ -609,9 +609,9 @@ public class Ternary {
-
+
Summary & Reading Questions
-
+
-
Java requires parentheses around the condition and curly braces for code blocks in if statements, unlike Python which uses indentation alone.
@@ -630,7 +630,7 @@ public class Ternary {
-
+
Which is a correct Java if statement syntax?
diff --git a/source/ch5_loopsanditeration.ptx b/source/ch5_loopsanditeration.ptx
index c0e87a1..769a358 100644
--- a/source/ch5_loopsanditeration.ptx
+++ b/source/ch5_loopsanditeration.ptx
@@ -351,10 +351,10 @@ public class DoWhileExample {
-
+
Summary & Reading Questions
-
+
-
Java’s for loop syntax allows you to control loop initialization, condition, and update in one line using the format for (init; condition; update).
@@ -376,7 +376,7 @@ public class DoWhileExample {
-
+
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
-
+
-
Recursion solves problems by defining a base case and a recursive step; each call reduces the problem size until the base case is reached.
diff --git a/source/ch8_filehandling.ptx b/source/ch8_filehandling.ptx
index a610f37..5088761 100644
--- a/source/ch8_filehandling.ptx
+++ b/source/ch8_filehandling.ptx
@@ -573,9 +573,9 @@ public class DeleteFile {
-
+
Summary & Reading Questions
-
+
-
To work with files in Java, you must import specific classes like java.io.File, java.io.FileWriter, and handle exceptions such as IOException.
@@ -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?
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
-
+
-
In Java, every variable must be declared with its type before use; undeclared variables cause compilation errors.
@@ -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?