diff --git a/src/instance_methods/challenges.md b/src/instance_methods/challenges.md index 6e07bef..7240761 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/multi_file_programs/the_anonymous_main_class.md b/src/multi_file_programs/the_anonymous_main_class.md index a893e43..dc0d61c 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 { diff --git a/src/operating_systems/abstractions.md b/src/operating_systems/abstractions.md index ede42ad..e023841 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 diff --git a/src/operating_systems/defaults.md b/src/operating_systems/defaults.md index aaa6647..cabb7c8 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. diff --git a/src/static_methods/factories.md b/src/static_methods/factories.md index 7ce98b6..02e0818 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 { diff --git a/src/strings_ii/UPPERCASE.md b/src/strings_ii/UPPERCASE.md index 8d44eb3..3a52ddd 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() { diff --git a/src/strings_ii/check_if_blank.md b/src/strings_ii/check_if_blank.md index 7feff4c..253a61c 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 diff --git a/src/switch/challenges.md b/src/switch/challenges.md index d43bafb..61f5b6e 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 } diff --git a/src/the_terminal/windows_subsystem_for_linux.md b/src/the_terminal/windows_subsystem_for_linux.md index aafbf94..dce5cb0 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