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
3 changes: 2 additions & 1 deletion src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ Gui stuff
- [AI](./prelude/ai.md)
- [Java](./prelude/java.md)

<!--
# The Computing Environment

- [Hardware](./hardware.md)
Expand All @@ -123,6 +124,7 @@ Gui stuff
- [Game Consoles](./operating_systems/game_consoles.md)
- [Abstractions](./operating_systems/abstractions.md)
- [Defaults](./operating_systems/defaults.md)
-->

# Modern Java

Expand All @@ -144,7 +146,6 @@ Gui stuff
- [Creating Files](./the_terminal/creating_files.md)
- [Run Java Programs](./the_terminal/run_java_programs.md)
- [Getting Used to it](./the_terminal/getting_used_to_it.md)
- [Challenges](./the_terminal/challenges.md)


<!-- - [Getting Started](./getting_started.md) -->
Expand Down
9 changes: 7 additions & 2 deletions src/integers/remainder.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@
To get the remainder of the division between two integers you can use the `%` operator.
This is called the "modulo operator."

With `int`s `7 / 2` will give you `3`. That `3` is the "quotient" from the division
and is the number of times `2` can be taken out of `7`. This leaves a "remainder" of `1`.

The modulo operator gives you that remainder.

```java
~void main() {
int x = 5;
// The remainder of 5 / 2 is 1
// 5 / 2 is 2 with a remainder of 1
// y will be 1
int y = x % 2;
// The remainder of 5 / 3 is 2
// 5 / 3 is 1 with a remainder of 2
// z will be 2
int z = x % 3;

Expand Down
2 changes: 1 addition & 1 deletion src/the_terminal/getting_used_to_it.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ comfortable using the terminal for things.

Thats normal. You'll get there eventually. Just know that at least some familiarity with the terminal is going to be needed.

We'll get back to it relatively soon, but feel free to seek out some bash/terminal specific resources online in the meantime.
We'll get back to it eventually, but feel free to seek out some bash/terminal specific resources online in the meantime.