diff --git a/src/files.md b/src/files.md index b087e373..d00bbf4c 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/generics/raw_types.md b/src/generics/raw_types.md index 6dc80f85..ebf803e7 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. diff --git a/src/integers_ii/base_16_integer_literals.md b/src/integers_ii/base_16_integer_literals.md index fdd4232b..06995481 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/interfaces/implementation.md b/src/interfaces/implementation.md index 5c51533b..a96578dd 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] diff --git a/src/objects/override_equals_and_hashCode.md b/src/objects/override_equals_and_hashCode.md index 63dc3c35..3387cac2 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 { diff --git a/src/packages/reverse_domain_name_notation.md b/src/packages/reverse_domain_name_notation.md index 40f1128f..ddfce7cd 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. diff --git a/src/records/declaration.md b/src/records/declaration.md index 0c19b0ec..238e8fe0 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 diff --git a/src/time/duration.md b/src/time/duration.md index 7150595b..3ea152d1 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 diff --git a/src/time/local_time.md b/src/time/local_time.md index 7e475f74..98a98f21 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;