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 1/8] 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 2/8] 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 3/8] 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 4/8] 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 5/8] 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 6/8] 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 7/8] 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 8/8] 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.