From 920b10e8fa1e65dd0b8053dbcd03d77604fe0aeb Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Wed, 16 Jul 2025 15:15:29 -0700 Subject: [PATCH 1/9] Fix typo --- src/packages/reverse_domain_name_notation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/reverse_domain_name_notation.md b/src/packages/reverse_domain_name_notation.md index 40f1128..ddfce7c 100644 --- a/src/packages/reverse_domain_name_notation.md +++ b/src/packages/reverse_domain_name_notation.md @@ -16,7 +16,7 @@ of that - `com.google`.[^thisiswhy] Nowadays people also tend to accept unique prefixes based on accounts you might have on a site. So you might see things like `com.github.their_username_here` for people who have an account with a service like `Github`. -It isn't perfect, nothing would be, but its socially dominant so you should be aware of it. If the code you are writing won't be shared with others you do not need to do this sort of thing yourself. +It isn't perfect, nothing would be, but it's socially dominant so you should be aware of it. If the code you are writing won't be shared with others you do not need to do this sort of thing yourself. [^shared]: That might be mixed with other code written by different companies or by different people. From 31ca83743b942c535622454cfc4fb7da8aa3d449 Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Wed, 16 Jul 2025 15:42:44 -0700 Subject: [PATCH 2/9] Fix typo --- src/records/declaration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/records/declaration.md b/src/records/declaration.md index 0c19b0e..238e8fe 100644 --- a/src/records/declaration.md +++ b/src/records/declaration.md @@ -16,4 +16,4 @@ record Pants() {} ``` [^astowhy]: As to why you might want to give an empty list of record components, -its nuanced. For now its just for fun. \ No newline at end of file +it's nuanced. For now it's just for fun. \ No newline at end of file From 1549ffba8972b9bc9a2605755a0bb57e9e764c9b Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Fri, 18 Jul 2025 11:54:43 -0700 Subject: [PATCH 3/9] Fix typo/example --- src/files.md | 2 +- src/integers_ii/base_16_integer_literals.md | 2 +- src/objects/equals_and_hashCode.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/files.md b/src/files.md index b087e37..d00bbf4 100644 --- a/src/files.md +++ b/src/files.md @@ -4,6 +4,6 @@ Files are how you store information on a[^normal] computer so that it can still be there when your program is done running. -As such, read files and writing files are tasks you will often want to do. +As such, reading files and writing files are tasks you will often want to do. [^normal]: *normal \ No newline at end of file diff --git a/src/integers_ii/base_16_integer_literals.md b/src/integers_ii/base_16_integer_literals.md index fdd4232..0699548 100644 --- a/src/integers_ii/base_16_integer_literals.md +++ b/src/integers_ii/base_16_integer_literals.md @@ -33,4 +33,4 @@ deals with colors in RGB - Red, Green, Blue - format. `0xFFFFFF` is white, `0xFF [^everything]: Okay to be real with you, every number system is a base 10 system. -Even if what you call "10" is what we would call "sixteen", you always wrap around your base when you write "10." If that doesn't make sense it doesn't matter, but its fascinating to me. \ No newline at end of file +Even if what you call "10" is what we would call "sixteen", you always wrap around your base when you write "10." If that doesn't make sense it doesn't matter, but it's fascinating to me. \ No newline at end of file diff --git a/src/objects/equals_and_hashCode.md b/src/objects/equals_and_hashCode.md index 6a45732..a78a05b 100644 --- a/src/objects/equals_and_hashCode.md +++ b/src/objects/equals_and_hashCode.md @@ -63,9 +63,9 @@ class Main { String c = "bca"; IO.println(a.hashCode()); - // a.equals(b) will return true, so they will have the same hash code + // a.equals(b) will return true, so they may or may not have the same hash code IO.println(b.hashCode()); - // a.equals(c) will return false, so they may or may not have the same hash code + // a.equals(c) will return false, so it's assumed they have a different hash code IO.println(c.hashCode()); Thing t1 = new Thing(); From e3f25e049f4ab72b3ea6d441d175db90a80b246e Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Fri, 18 Jul 2025 11:58:25 -0700 Subject: [PATCH 4/9] Undo example change --- src/objects/equals_and_hashCode.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/objects/equals_and_hashCode.md b/src/objects/equals_and_hashCode.md index a78a05b..6a45732 100644 --- a/src/objects/equals_and_hashCode.md +++ b/src/objects/equals_and_hashCode.md @@ -63,9 +63,9 @@ class Main { String c = "bca"; IO.println(a.hashCode()); - // a.equals(b) will return true, so they may or may not have the same hash code + // a.equals(b) will return true, so they will have the same hash code IO.println(b.hashCode()); - // a.equals(c) will return false, so it's assumed they have a different hash code + // a.equals(c) will return false, so they may or may not have the same hash code IO.println(c.hashCode()); Thing t1 = new Thing(); From f81a872f2ae05bd2cf05098c53e732b47b476163 Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Fri, 18 Jul 2025 18:18:53 -0700 Subject: [PATCH 5/9] Fix grammar --- src/objects/override_equals_and_hashCode.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objects/override_equals_and_hashCode.md b/src/objects/override_equals_and_hashCode.md index 63dc3c3..3387cac 100644 --- a/src/objects/override_equals_and_hashCode.md +++ b/src/objects/override_equals_and_hashCode.md @@ -40,7 +40,7 @@ class Position { } ``` -Then you compare the all the fields to make sure they are equal to each other as well. +Then you compare all the fields to make sure they are equal to each other as well. ```java,no_run class Position { From 9a7a7243cc79c5ebba61cc751e8254d0150ba668 Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Fri, 18 Jul 2025 20:03:23 -0700 Subject: [PATCH 6/9] Fix grammar --- src/generics/raw_types.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/generics/raw_types.md b/src/generics/raw_types.md index 6dc80f8..ebf803e 100644 --- a/src/generics/raw_types.md +++ b/src/generics/raw_types.md @@ -39,8 +39,7 @@ void main() { Raw types exist for two basic reasons -1. Every now and then Java isn't smart enough. Trust that there are valid reasons to turn off generics, even -I haven't shown you any yet. Avoid doing so yourself - at least for awhile. +1. Every now and then Java isn't smart enough. Trust that there are valid reasons to turn off generics, even if I haven't shown you any yet. Avoid doing so yourself - at least for awhile. 2. Generics weren't always in Java! Classes that later were made generic had to stay compatible with old "raw" usages somehow. From 574242dec67afd6416acfe67ba9cb1c005ae6217 Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Fri, 18 Jul 2025 20:53:50 -0700 Subject: [PATCH 7/9] Fix grammar --- src/interfaces/implementation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces/implementation.md b/src/interfaces/implementation.md index 5c51533..a96578d 100644 --- a/src/interfaces/implementation.md +++ b/src/interfaces/implementation.md @@ -18,7 +18,7 @@ class Mutt implements Dog { } ``` -Then you all you need to do is declare methods which match up with the methods defined in the interface. +Then all you need to do is declare methods which match up with the methods defined in the interface. Keep in mind that while you didn't write `public` in the interface, you need to write `public` when implementing a method from an interface.[^all] From 804ed9987d7724da0d5fc7da9e1b39b45987c9bd Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Fri, 18 Jul 2025 23:07:01 -0700 Subject: [PATCH 8/9] Fix grammar --- src/time/duration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/time/duration.md b/src/time/duration.md index 7150595..3ea152d 100644 --- a/src/time/duration.md +++ b/src/time/duration.md @@ -17,7 +17,7 @@ void main() { } ``` -You can use these get the duration between two `Instant`s with +You can use these to get the duration between two `Instant`s with `Duration.between`. ```java From 39cd3e5f8c1c42f50ea375bf61ca78ca2dd2698c Mon Sep 17 00:00:00 2001 From: zohairawan <35776095+zohairawan@users.noreply.github.com> Date: Fri, 18 Jul 2025 23:23:13 -0700 Subject: [PATCH 9/9] Fix class name --- src/time/local_time.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/time/local_time.md b/src/time/local_time.md index 7e475f7..98a98f2 100644 --- a/src/time/local_time.md +++ b/src/time/local_time.md @@ -17,7 +17,7 @@ void main() { } ``` -And similarly you can get the current time your computer thinks it is with `LocalName.now()` +And similarly you can get the current time your computer thinks it is with `LocalTime.now()` ```java import java.time.LocalTime;
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: