From 3ac5b6efe7bb065696143f9117f1f46f3d2e1959 Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Thu, 10 Jul 2025 13:36:58 -0700 Subject: [PATCH 1/7] Fix typo --- src/arrays_ii/initialization_with_size.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arrays_ii/initialization_with_size.md b/src/arrays_ii/initialization_with_size.md index e076ff4..5813c62 100644 --- a/src/arrays_ii/initialization_with_size.md +++ b/src/arrays_ii/initialization_with_size.md @@ -1,4 +1,4 @@ -# Initializion with Size +# Initialization with Size The Nintendo GameBoy had a screen resolution of 160 x 144. To store the value of each pixel[^bw] you would need an array 23,040 items From eee1377cbe1ff4c77ffb88e11f74cda2545d8fd2 Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Thu, 10 Jul 2025 13:38:41 -0700 Subject: [PATCH 2/7] Delete extra word --- src/arrays_ii/initialization_with_size.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arrays_ii/initialization_with_size.md b/src/arrays_ii/initialization_with_size.md index 5813c62..ea27e51 100644 --- a/src/arrays_ii/initialization_with_size.md +++ b/src/arrays_ii/initialization_with_size.md @@ -14,4 +14,4 @@ boolean[] pixels = new boolean[23040]; So you have to say `new` followed by the type of element in the array, `[`, the size of the array and `]`. -[^bw]: The original GameBoy wasn't actually just black and white. It supported 7 shades of gray, so a `boolean` wouldn't technically to be enough to represent a pixel's state. You'd have to use something with at least 8 states, not just 2. +[^bw]: The original GameBoy wasn't actually just black and white. It supported 7 shades of gray, so a `boolean` wouldn't technically be enough to represent a pixel's state. You'd have to use something with at least 8 states, not just 2. From 918c1f9567547b5ca331118bf49eb62c215b8ccd Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Thu, 10 Jul 2025 13:44:32 -0700 Subject: [PATCH 3/7] Fix grammar --- src/arrays_ii/initialization_with_size.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arrays_ii/initialization_with_size.md b/src/arrays_ii/initialization_with_size.md index ea27e51..109c9f7 100644 --- a/src/arrays_ii/initialization_with_size.md +++ b/src/arrays_ii/initialization_with_size.md @@ -5,7 +5,7 @@ To store the value of each pixel[^bw] you would need an array 23,040 items long. To support this without you writing the word `false` 23,040 times, -arrays can be made with just by giving a size and skipping the initializer. +arrays can be made just by giving a size and skipping the initializer. ```java,no_run boolean[] pixels = new boolean[23040]; From 337022990d77b4baed47b4223889372ef390fa1a Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Thu, 10 Jul 2025 16:04:37 -0700 Subject: [PATCH 4/7] Fix grammar --- src/classes/instances.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/instances.md b/src/classes/instances.md index 2131840..2737938 100644 --- a/src/classes/instances.md +++ b/src/classes/instances.md @@ -15,7 +15,7 @@ void main() { } ``` -Very similarly to arrays, the output from printing an instance of a class might seem like gibberish (`Main$Muppet@1be6f5c3`). +Very similar to arrays, the output from printing an instance of a class might seem like gibberish (`Main$Muppet@1be6f5c3`). You will learn how to make it nicer later. [^var]: I haven't used it in many code samples thus far, but if you remember `var` this is one of the times From 1eb8ff24a08481141bebb55268d7f1f3cf9d986d Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Thu, 10 Jul 2025 16:15:37 -0700 Subject: [PATCH 5/7] Fix grammar --- src/classes/field_access.md | 2 +- src/classes/field_initialization.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/classes/field_access.md b/src/classes/field_access.md index 15706c6..e7975fe 100644 --- a/src/classes/field_access.md +++ b/src/classes/field_access.md @@ -1,6 +1,6 @@ # Field Access -You can access the value of any field on a class by writing the name of a variable holding an instance +You can access the value of any field in a class by writing the name of a variable holding an instance of that class, `.`, then the name of that field. ```java diff --git a/src/classes/field_initialization.md b/src/classes/field_initialization.md index 0a3461f..4339488 100644 --- a/src/classes/field_initialization.md +++ b/src/classes/field_initialization.md @@ -2,7 +2,7 @@ You can set an initial value for a field in a few ways. -One is to access to assign the field directly on the instance created. +One is to assign the field directly on the instance created. ```java class Muppet { From 828a73dfd56ec82886632dc39575a9a1ee5ebd05 Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Thu, 10 Jul 2025 17:41:30 -0700 Subject: [PATCH 6/7] Fix grammar --- src/instance_methods.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instance_methods.md b/src/instance_methods.md index e499cb0..2cc4255 100644 --- a/src/instance_methods.md +++ b/src/instance_methods.md @@ -19,5 +19,5 @@ class Muppet { We call these instance methods because you need an instance of the class in order to call the method. -[^kermitangry]: If you haven't seen the muppets this might have go over your head, +[^kermitangry]: If you haven't seen the muppets this might go over your head, but Kermit [randomly gets really mad.](https://www.youtube.com/watch?v=SVDgHEg2jnY) \ No newline at end of file From 80ff0982b787d6e5044409d68e8c74ae0c8685e1 Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Thu, 10 Jul 2025 17:51:30 -0700 Subject: [PATCH 7/7] Fix challenge --- src/classes/challenges.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/challenges.md b/src/classes/challenges.md index d7bf220..94fbdee 100644 --- a/src/classes/challenges.md +++ b/src/classes/challenges.md @@ -105,7 +105,7 @@ class SquareRoot { double negativeRoot; } -void squareRoot(double value) { +SquareRoot squareRoot(double value) { // ----------- // CODE HERE // -----------
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: