From 5591a235b18a8455720acf33f513b2f56cf8b8eb Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Sat, 12 Jul 2025 20:00:26 -0700 Subject: [PATCH 01/10] Fix typos --- src/instance_methods/challenges.md | 2 +- src/strings_ii/UPPERCASE.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/instance_methods/challenges.md b/src/instance_methods/challenges.md index 6e07beff..72407619 100644 --- a/src/instance_methods/challenges.md +++ b/src/instance_methods/challenges.md @@ -111,7 +111,7 @@ void main() { ## Challenge 4. -Make a `Rectange` class which has a `width` field and a `height` +Make a `Rectangle` class which has a `width` field and a `height` field. Give it an instance method named `toCharArray` which gives a `char[]` that can be printed to display a rectangle of the given width and height. diff --git a/src/strings_ii/UPPERCASE.md b/src/strings_ii/UPPERCASE.md index 8d44eb3f..3a52ddd4 100644 --- a/src/strings_ii/UPPERCASE.md +++ b/src/strings_ii/UPPERCASE.md @@ -1,7 +1,7 @@ # UPPERCASE Similarly, if you have a `String` which potentially contains lower-cased letters, you can get a new `String` with everything -transformed into lower-case using the `.toUpperCase()` method. +transformed into upper-case using the `.toUpperCase()` method. ```java void main() { From 8391da74a30864a25d7a857e15b4159aa6c9d227 Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Sun, 13 Jul 2025 16:13:17 -0700 Subject: [PATCH 02/10] Fix grammar --- src/strings_ii/check_if_blank.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/strings_ii/check_if_blank.md b/src/strings_ii/check_if_blank.md index 7feff4cd..253a61cd 100644 --- a/src/strings_ii/check_if_blank.md +++ b/src/strings_ii/check_if_blank.md @@ -2,8 +2,7 @@ You can check if a `String` is blank by using the `.isBlank` method. -The difference is that an empty `String` has actually zero characters. A blank `String` -is can have characters, so long as those characters are what we would consider whitespace. +The difference is that an empty `String` has actually zero characters. A blank `String` can have characters, so long as those characters are what we would consider whitespace. That is, things like spaces and newlines. ```java From 543dd8af4269c7f8de353b780d6f4651d0f2c6f5 Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Mon, 14 Jul 2025 12:15:01 -0700 Subject: [PATCH 03/10] Fix - Switch statement was not exhaustive --- src/switch/exhaustiveness.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/switch/exhaustiveness.md b/src/switch/exhaustiveness.md index ac79cfb8..2ae64dcd 100644 --- a/src/switch/exhaustiveness.md +++ b/src/switch/exhaustiveness.md @@ -45,5 +45,6 @@ boolean isScary(Bird bird) { return false; } } + return false; } ``` \ No newline at end of file From f7cafc305b3f024e7851094f019b31d4c8956e6c Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Mon, 14 Jul 2025 14:23:19 -0700 Subject: [PATCH 04/10] Fix typo --- src/switch/challenges.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch/challenges.md b/src/switch/challenges.md index d43bafb5..61f5b6e3 100644 --- a/src/switch/challenges.md +++ b/src/switch/challenges.md @@ -180,7 +180,7 @@ enum Bear { enum Action { LAY_DOWN, FIGHT_BACK, - RUN_AWAY + RUN_AWAY, YEET } From c81977e9519ae7312ee44a192c3d24ec3deca29a Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Tue, 15 Jul 2025 02:03:15 -0700 Subject: [PATCH 05/10] Fix typo --- src/operating_systems/abstractions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operating_systems/abstractions.md b/src/operating_systems/abstractions.md index ede42ad5..e0238417 100644 --- a/src/operating_systems/abstractions.md +++ b/src/operating_systems/abstractions.md @@ -1,6 +1,6 @@ # Abstractions -The most important jobs of an operating system is to "abstract" +The most important job of an operating system is to "abstract" over the hardware. You shouldn't need to know what brand network card you have in order From 0014aea395955d87fab8039fa435f10761df540b Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Tue, 15 Jul 2025 02:07:24 -0700 Subject: [PATCH 06/10] Fix typo --- src/operating_systems/defaults.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operating_systems/defaults.md b/src/operating_systems/defaults.md index aaa66473..cabb7c81 100644 --- a/src/operating_systems/defaults.md +++ b/src/operating_systems/defaults.md @@ -15,7 +15,7 @@ only had text based interfaces. In many practical ways, people were closer to th So think about that whenever you feel like you have a lot left to learn. A lot of what you do and do not know about computers was dictated for you by the fact that you grew up interacting with them on a touch screen -instead of on a terminal. Things are not as intimiating as they seem. +instead of on a terminal. Things are not as intimidating as they seem. [^lawsuit]: https://en.wikipedia.org/wiki/United_States_v._Microsoft_Corp. From 0e1a2d326aff2aaba9d9c616f1ae60dac49be411 Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Tue, 15 Jul 2025 02:11:41 -0700 Subject: [PATCH 07/10] Fix typo --- src/the_terminal/windows_subsystem_for_linux.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/the_terminal/windows_subsystem_for_linux.md b/src/the_terminal/windows_subsystem_for_linux.md index aafbf948..dce5cb02 100644 --- a/src/the_terminal/windows_subsystem_for_linux.md +++ b/src/the_terminal/windows_subsystem_for_linux.md @@ -7,4 +7,4 @@ Both of these differ in significant ways from bash so, if at all possible, you s This will let you follow along with the bash snippets you'll see later in this book.[^other_shells] -[^other_shells]: It is certainly possible for me to also include instruction for PowerShell and batch but it doesn't feel practical. I spend most of my working hours using batch and can test commands on the machine I use to write this. It would be hard for me to do that with the Windows specific shells \ No newline at end of file +[^other_shells]: It is certainly possible for me to also include instruction for PowerShell and batch but it doesn't feel practical. I spend most of my working hours using bash and can test commands on the machine I use to write this. It would be hard for me to do that with the Windows specific shells \ No newline at end of file From 718d5536fef7e44c5c490aa05b8b9846795ad128 Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Tue, 15 Jul 2025 02:54:54 -0700 Subject: [PATCH 08/10] Fix typo --- src/multi_file_programs/the_anonymous_main_class.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/multi_file_programs/the_anonymous_main_class.md b/src/multi_file_programs/the_anonymous_main_class.md index a893e434..dc0d61ce 100644 --- a/src/multi_file_programs/the_anonymous_main_class.md +++ b/src/multi_file_programs/the_anonymous_main_class.md @@ -15,7 +15,7 @@ We call it anonymous because we never gave it a name. We call it the main class because you are only allowed to skip naming a class if it is the one you use to start your program, and that requires a `void main()` method. -If you take any code we've produced up until now and put wrap it with `class Main {}` it will continue to work as-is. +If you take any code we've produced up until now and wrap it with `class Main {}` it will continue to work as-is. ```java class Main { From 4cfd8847b53dce0d395a4e12a5e15025bd90bb14 Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Tue, 15 Jul 2025 03:38:27 -0700 Subject: [PATCH 09/10] Fix grammar --- src/static_methods/factories.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static_methods/factories.md b/src/static_methods/factories.md index 7ce98b66..02e0818b 100644 --- a/src/static_methods/factories.md +++ b/src/static_methods/factories.md @@ -18,7 +18,7 @@ class Position { ~void main() {} ``` -It would be reasonable want to add an overloaded constructor for when `y` is `0`. +It would be reasonable to want to add an overloaded constructor for when `y` is `0`. ```java class Position { From baf48aaece533d704d12a676a505239f3d21358c Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Tue, 15 Jul 2025 11:39:40 -0700 Subject: [PATCH 10/10] Undo switch exhaustiveness --- src/switch/exhaustiveness.md | 1 - 1 file changed, 1 deletion(-) diff --git a/src/switch/exhaustiveness.md b/src/switch/exhaustiveness.md index 2ae64dcd..ac79cfb8 100644 --- a/src/switch/exhaustiveness.md +++ b/src/switch/exhaustiveness.md @@ -45,6 +45,5 @@ boolean isScary(Bird bird) { return false; } } - return false; } ``` \ No newline at end of file