Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/compilation/modules.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/compilation/running_compiled_code.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

```
Expand Down
2 changes: 1 addition & 1 deletion src/hardware/motherboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
4 changes: 2 additions & 2 deletions src/lambdas/functional_interfaces.md
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -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.
2 changes: 1 addition & 1 deletion src/modules/requires.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion src/packaging/jar_files.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/strings_ii/strip_extra_whitespace.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down