diff --git a/src/compilation/modules.md b/src/compilation/modules.md index 5619095..7ee6877 100644 --- a/src/compilation/modules.md +++ b/src/compilation/modules.md @@ -1,7 +1,7 @@ # Modules For reasons that will become apparent as we proceed, -it is best if all all the code you intend to share +it is best if all the code you intend to share is contained within a named module. This means at minimum your classes would need to be in packages diff --git a/src/compilation/running_compiled_code.md b/src/compilation/running_compiled_code.md index 107ded5..0168083 100644 --- a/src/compilation/running_compiled_code.md +++ b/src/compilation/running_compiled_code.md @@ -18,8 +18,7 @@ you would run `java --class-path output chopin.Impromptu`. `--class-path` should be self-explanatory. It is the path where `java` will look for class files. -But if you do not have any classes in the unnamed package - which will -be hopefully be the case when you share code with others[^conflicts] - +But if you do not have any classes in the unnamed package - which will hopefully be the case when you share code with others[^conflicts] - you instead want to run your code like this. ``` diff --git a/src/hardware/motherboard.md b/src/hardware/motherboard.md index dbd69e0..4a445d6 100644 --- a/src/hardware/motherboard.md +++ b/src/hardware/motherboard.md @@ -4,5 +4,5 @@ All of these parts, and the parts I didn't mention, are connected to a big circuit board called a "motherboard." The motherboard connects the CPU, RAM, and any hard drive(s) such that they -can "talk" to eachother. The details of how it does this aren't super important, so just imagine +can "talk" to each other. The details of how it does this aren't super important, so just imagine that a tiny wizard lives inside it. \ No newline at end of file diff --git a/src/lambdas/functional_interfaces.md b/src/lambdas/functional_interfaces.md index 23641d7..e59ab32 100644 --- a/src/lambdas/functional_interfaces.md +++ b/src/lambdas/functional_interfaces.md @@ -1,6 +1,6 @@ # Functional Interfaces -If an interface has only a one method that needs to be implemented we would call that a "functional interface."[^SAM] +If an interface has only one method that needs to be implemented we would call that a "functional interface."[^SAM] ```java interface Band { @@ -34,7 +34,7 @@ interface Band { } ``` -Functions take input and return an output. We call them functional interfaces because with you can treat them as being functions whose input and output are the same as that one method to be implemented. +Functions take input and return an output. We call them functional interfaces because you can treat them as being functions whose input and output are the same as that one method to be implemented. [^SAM]: You might also see these referred to as SAM interfaces. SAM for Single Abstract Method. \ No newline at end of file diff --git a/src/modules/requires.md b/src/modules/requires.md index f3b3757..cc9dc93 100644 --- a/src/modules/requires.md +++ b/src/modules/requires.md @@ -32,7 +32,7 @@ module human { } ``` -These `requires` are not allowed form "cycles." +These `requires` are not allowed to form "cycles." This means that `cat` cannot require `dog` if `dog` also requires `cat`, indirectly or otherwise. diff --git a/src/packaging/jar_files.md b/src/packaging/jar_files.md index b8000fd..175857f 100644 --- a/src/packaging/jar_files.md +++ b/src/packaging/jar_files.md @@ -6,7 +6,7 @@ are just ZIP files with a few special bits of "metadata." ZIP files are a common way of bundling a bunch of files up into one file.[^compression] You don't need to know exactly where this metadata goes or what all of it is for yet, -just that at a high level its all just files in a ZIP. +just that at a high level it's all just files in a ZIP. [^compression]: This bundling up also generally includes "compression," where the single file might be smaller than the combined sizes of its components. Most people don't diff --git a/src/strings_ii/strip_extra_whitespace.md b/src/strings_ii/strip_extra_whitespace.md index d9ac03a..f50053d 100644 --- a/src/strings_ii/strip_extra_whitespace.md +++ b/src/strings_ii/strip_extra_whitespace.md @@ -1,6 +1,6 @@ # Strip extra whitespace -If you have a `String` which might contains some extra "trailing" whitespace or extra "leading" +If you have a `String` which might contains some "trailing" whitespace or "leading" whitespace, you can remove that by using the `.strip` method. This will give a new `String` with both the leading and trailing whitespace removed.