From b47aa44ce9a14e66d127dda27a320c6353df03c1 Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Fri, 4 Jul 2025 23:55:14 -0700 Subject: [PATCH 01/10] Fix grammar --- src/arrays/reassignment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arrays/reassignment.md b/src/arrays/reassignment.md index 2b09a02..834d93b 100644 --- a/src/arrays/reassignment.md +++ b/src/arrays/reassignment.md @@ -20,7 +20,7 @@ System.out.println(numbers.length); ~} ``` -This reassignment will not be affect any variables which +This reassignment will not affect any variables which are aliases for the variable's old value. ```java From 55d063f090658187bd90613402deeff4a286e762 Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Sat, 5 Jul 2025 00:15:31 -0700 Subject: [PATCH 02/10] Fix syntax --- src/arrays/relation_to_final_variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arrays/relation_to_final_variables.md b/src/arrays/relation_to_final_variables.md index 3472c8b..4d606a1 100644 --- a/src/arrays/relation_to_final_variables.md +++ b/src/arrays/relation_to_final_variables.md @@ -12,7 +12,7 @@ final char[] catchphrase = { 'w', 'o', 'a', 'h', '!' }; System.out.println(catchphrase); // Cannot reassign -// catchphrase = { 'e', 'g', 'a', 'd', 's' } +// catchphrase = new char[] { 'e', 'g', 'a', 'd', 's' } // but can set elements directly catchphrase[0] = 'e'; catchphrase[1] = 'g'; From 52e28b1cb5b263a43a61fa8aef1416de4d94d3c8 Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Sat, 5 Jul 2025 15:20:05 -0700 Subject: [PATCH 03/10] Fix variable name --- src/arrays/challenges.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arrays/challenges.md b/src/arrays/challenges.md index c210ab0..59e60eb 100644 --- a/src/arrays/challenges.md +++ b/src/arrays/challenges.md @@ -13,7 +13,7 @@ Edit the following program so that the output is zero. void main() { // Only change this line String[] words = { "Sam", "I", "Am" }; - System.out.println(array.length); + System.out.println(words.length); } ``` From 7e24c8b08c6e73d2cab146a065e47866ae090adb Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Sat, 5 Jul 2025 15:21:11 -0700 Subject: [PATCH 04/10] Change back to IO --- src/arrays/challenges.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arrays/challenges.md b/src/arrays/challenges.md index 59e60eb..48c2d91 100644 --- a/src/arrays/challenges.md +++ b/src/arrays/challenges.md @@ -13,7 +13,7 @@ Edit the following program so that the output is zero. void main() { // Only change this line String[] words = { "Sam", "I", "Am" }; - System.out.println(words.length); + IO.println(words.length); } ``` From 86df49bcb72c77e0f74deb8f291d96f8a5e7a6e6 Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Sat, 5 Jul 2025 15:54:42 -0700 Subject: [PATCH 05/10] Fix spacing --- src/loops_ii/comparison_to_while.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loops_ii/comparison_to_while.md b/src/loops_ii/comparison_to_while.md index 5877ab9..b8dfb11 100644 --- a/src/loops_ii/comparison_to_while.md +++ b/src/loops_ii/comparison_to_while.md @@ -54,7 +54,7 @@ while (index < numbers.length) { ~} ``` -Us humans, with our tiny monkey brains, can get very lost when things that are related to eachother are separated +Us humans, with our tiny monkey brains, can get very lost when things that are related to each other are separated by long distances. In this dimension, for loops are superior. All the bits of code that "control the loop" can be right at the top. From aef72ba0d2df131fa9a8c9ca411c3f2c98e88527 Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Sat, 5 Jul 2025 16:21:35 -0700 Subject: [PATCH 06/10] Add spacing and fix grammar --- src/loops_ii/i.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loops_ii/i.md b/src/loops_ii/i.md index cfce71d..b68bc9d 100644 --- a/src/loops_ii/i.md +++ b/src/loops_ii/i.md @@ -49,4 +49,4 @@ for (int i = 0; i < letters.length; i++) { Just do not start naming all your variables single letters. -[^jindex]: `j` and `k` standing for jindex an kindex respectfully. +[^jindex]: `j` and `k` standing for j index an k index respectively. From f902614542bbb07b7eb83725e3fedc897768e4d2 Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Sat, 5 Jul 2025 16:22:40 -0700 Subject: [PATCH 07/10] Fix grammar --- src/loops_ii/i.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loops_ii/i.md b/src/loops_ii/i.md index b68bc9d..7a3b849 100644 --- a/src/loops_ii/i.md +++ b/src/loops_ii/i.md @@ -49,4 +49,4 @@ for (int i = 0; i < letters.length; i++) { Just do not start naming all your variables single letters. -[^jindex]: `j` and `k` standing for j index an k index respectively. +[^jindex]: `j` and `k` standing for j index and k index respectively. From b6bb05088a4ad0c22007c49abc1b479edef60fcd Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Sat, 5 Jul 2025 16:56:54 -0700 Subject: [PATCH 08/10] Fix my own error --- src/loops_ii/i.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loops_ii/i.md b/src/loops_ii/i.md index 7a3b849..cfce71d 100644 --- a/src/loops_ii/i.md +++ b/src/loops_ii/i.md @@ -49,4 +49,4 @@ for (int i = 0; i < letters.length; i++) { Just do not start naming all your variables single letters. -[^jindex]: `j` and `k` standing for j index and k index respectively. +[^jindex]: `j` and `k` standing for jindex an kindex respectfully. From b23c870f5a91671cc4b3d064f1dc5f57befb52fb Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Sun, 6 Jul 2025 14:18:07 -0700 Subject: [PATCH 09/10] Fix code output --- src/loops_ii/empty_statements.md | 1 - 1 file changed, 1 deletion(-) diff --git a/src/loops_ii/empty_statements.md b/src/loops_ii/empty_statements.md index 6371eac..cfc47ce 100644 --- a/src/loops_ii/empty_statements.md +++ b/src/loops_ii/empty_statements.md @@ -14,7 +14,6 @@ for (int i = 6; i > 2;) { // 5 // 4 // 3 -// 2 ~} ``` From 4c6c1926807b2127b9a42aec70a9a5740ef58765 Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Sun, 6 Jul 2025 23:36:06 -0700 Subject: [PATCH 10/10] Fix grammar --- src/loops_ii/drawing_isosceles_triangles.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loops_ii/drawing_isosceles_triangles.md b/src/loops_ii/drawing_isosceles_triangles.md index 64fb14a..b17f8af 100644 --- a/src/loops_ii/drawing_isosceles_triangles.md +++ b/src/loops_ii/drawing_isosceles_triangles.md @@ -8,7 +8,7 @@ Another fun shape is the isosceles triangle. ***** ``` -For this one, the each row of the triangle needs to have spaces before it to shift it in to the +For this one, each row of the triangle needs to have spaces before it to shift it in to the center. How much each row needs to be shifted depends on how big the trangle will be overall. In this case with three rows of `*`s, the top `*` needs two space characters before it