Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #53

Merged
merged 91 commits into from
Sep 5, 2024
Merged
Changes from 1 commit
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
2393236
more sections
bowbahdoe May 8, 2023
25924c1
First feedback round
bowbahdoe May 8, 2023
8503233
Update prelude.md
bowbahdoe May 8, 2023
914cd82
...
bowbahdoe May 13, 2023
ff8df0d
Spelling fix
bowbahdoe Jun 9, 2023
9c2678a
Arguments chapter
bowbahdoe Jun 17, 2023
f08cd22
More Challenges
bowbahdoe Jun 25, 2023
f751c08
Run prettier
bowbahdoe Aug 28, 2023
43ea470
user input
bowbahdoe Aug 28, 2023
794c9a0
October 14th, #1
bowbahdoe Oct 14, 2023
2642397
Array challenges
bowbahdoe Oct 14, 2023
94d3205
Delete challenges
bowbahdoe Oct 14, 2023
d7941e7
Null
bowbahdoe Oct 15, 2023
beafad8
...
bowbahdoe Oct 15, 2023
72693cc
Update null_as_absence.md
bowbahdoe Oct 15, 2023
33d0edc
Merge remote-tracking branch 'upstream/develop' into develop
bowbahdoe Nov 19, 2023
9a4b031
Delete out.json
bowbahdoe Nov 19, 2023
d2d6930
Fix quotes
bowbahdoe Nov 19, 2023
adc4811
Add first no_runs
bowbahdoe Nov 19, 2023
91ba156
Fix number example
bowbahdoe Nov 19, 2023
a07e987
...
bowbahdoe Feb 5, 2024
c90c905
Write more of the classes section
bowbahdoe Feb 6, 2024
1fd9a4d
Constructors
bowbahdoe Feb 7, 2024
d4a9dda
Clean up getting started a little
bowbahdoe Feb 7, 2024
62e73ad
Use a duke
bowbahdoe Feb 7, 2024
53cb45b
Don't link anywhere yet
bowbahdoe Feb 7, 2024
cc6cb4f
Increase lines needed to show a duke
bowbahdoe Feb 7, 2024
47627e5
Fix field access section
bowbahdoe Feb 7, 2024
161f934
...
bowbahdoe Feb 7, 2024
fcf44de
...
bowbahdoe Feb 7, 2024
b50a63f
...
bowbahdoe Feb 7, 2024
5067aec
...
bowbahdoe Feb 7, 2024
b455ef1
...
bowbahdoe Feb 7, 2024
e808fdf
switch and enums
bowbahdoe Feb 12, 2024
517973d
Merge remote-tracking branch 'upstream/develop' into develop
bowbahdoe Feb 13, 2024
344512f
Merge remote-tracking branch 'upstream/develop' into develop
bowbahdoe Feb 14, 2024
ed4ee40
Merge remote-tracking branch 'upstream/develop' into develop
bowbahdoe Feb 14, 2024
c0aaf10
Update book.toml
bowbahdoe Feb 14, 2024
cb7b4eb
Density
bowbahdoe Feb 14, 2024
7fd3e45
Update audience.md
bowbahdoe Feb 14, 2024
fdfb5bc
..
bowbahdoe Feb 14, 2024
c8bcf9d
Strings 2
bowbahdoe Feb 14, 2024
eeb4080
Update length.md
bowbahdoe Feb 14, 2024
72ba7e8
Global Fields
bowbahdoe Feb 15, 2024
b4f83e4
Merge remote-tracking branch 'upstream/develop' into develop
bowbahdoe Feb 17, 2024
9899b02
Merge remote-tracking branch 'upstream/develop' into develop
bowbahdoe Feb 17, 2024
e92020a
Input
bowbahdoe Feb 20, 2024
6376800
Update delayed_assignment.md
bowbahdoe Feb 20, 2024
f2d3d2e
...
bowbahdoe Feb 20, 2024
63a2973
...
bowbahdoe Feb 20, 2024
a27e061
Update book.js
bowbahdoe Apr 10, 2024
dc30eb5
Update challenges.md
bowbahdoe Apr 27, 2024
3b857c0
Remove blank Challenge
bowbahdoe Apr 28, 2024
521828f
Fix some issues, push some incomplete sections
bowbahdoe Apr 28, 2024
4457dee
Update challenges.md
bowbahdoe May 7, 2024
be25314
terminal
bowbahdoe May 7, 2024
5a02f25
Update challenges.md
bowbahdoe May 15, 2024
02fa7d6
Switches and visibility
bowbahdoe Jun 18, 2024
2d9ef2c
Growable array
bowbahdoe Jun 18, 2024
62f5d6b
Cli Args
bowbahdoe Jun 18, 2024
620427e
Delete unused
bowbahdoe Jun 18, 2024
7cd05e2
Change url
bowbahdoe Jun 19, 2024
cba4baa
inner classes
bowbahdoe Jun 19, 2024
898c891
Update unchecked_exceptions.md
bowbahdoe Jun 19, 2024
da1ec01
Update checked_exceptions.md
bowbahdoe Jun 19, 2024
d5e9fc1
Update invariants.md
bowbahdoe Jun 19, 2024
04bec4e
Packages
bowbahdoe Jun 20, 2024
02de34b
Records
bowbahdoe Jun 20, 2024
84b78fd
Update the_default_package.md
bowbahdoe Jun 20, 2024
e028ff7
Syntax highlighting wierdness
bowbahdoe Jun 20, 2024
b13d2dc
More records
bowbahdoe Jun 21, 2024
90beb94
Integers, Files, etc.
bowbahdoe Jun 25, 2024
c80e1f4
Move IOException around
bowbahdoe Jun 25, 2024
5a8d5fb
...
bowbahdoe Jun 25, 2024
4452c6a
Merge branch 'Together-Java:develop' into develop
bowbahdoe Jun 26, 2024
cb6e65b
...
bowbahdoe Jun 26, 2024
4cdd310
Add new dukes and start hash maps
bowbahdoe Aug 16, 2024
8073ea9
Start hashmap explanation
bowbahdoe Aug 22, 2024
cb143dd
Objects
bowbahdoe Aug 22, 2024
cb4a134
Update README.md
bowbahdoe Aug 22, 2024
8e70628
More object chapters
bowbahdoe Aug 23, 2024
97c894a
More hash maps
bowbahdoe Aug 24, 2024
2a7225f
More hash maps
bowbahdoe Aug 25, 2024
1521b2f
new section headers
bowbahdoe Aug 26, 2024
03ca1a8
Time types
bowbahdoe Aug 28, 2024
b04aff9
ArrayList
bowbahdoe Aug 29, 2024
7983d02
For each loops
bowbahdoe Aug 29, 2024
bbee584
recursion
bowbahdoe Aug 30, 2024
b730191
Arraylist recursion and switch
bowbahdoe Sep 2, 2024
106e533
Switch progress
bowbahdoe Sep 5, 2024
7f1e4ca
Merge remote-tracking branch 'upstream/develop' into develop
bowbahdoe Sep 5, 2024
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
Prev Previous commit
Next Next commit
Records
bowbahdoe committed Jun 20, 2024
commit 02de34b0f889a4ae6d7aed1d86118b28ac552986
30 changes: 17 additions & 13 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -359,7 +359,7 @@
- [The Main file](./multi_file_programs/the_main_file.md)
- [A Second file](./multi_file_programs/a_second_file.md)
- [File names](./multi_file_programs/file_names.md)
- [The anonymous main class](./multi_file_programs/the_anonymous_main_class.md)
- [The Anonymous Main Class](./multi_file_programs/the_anonymous_main_class.md)
- [Global Fields](./multi_file_programs/global_fields.md)
- [Visibility](./visibility.md)
- [Private Methods](./visibility/private_methods.md)
@@ -417,7 +417,7 @@
- [Fully Qualified Class Name](./packages/fully_qualified_class_name.md)
- [Import](./packages/import.md)
- [The Default Package](./packages/the_default_package.md)
- [The anonymous main class](./packages/the_anonymous_main_class.md)
- [The Anonymous Main Class](./packages/the_anonymous_main_class.md)
- [Public Methods](./packages/public_methods.md)
- [Package-Private Methods](./packages/package_private_methods.md)
- [Public Fields](./packages/public_fields.md)
@@ -428,13 +428,21 @@
- [Subpackages](./packages/subpackages.md)
- [Reverse Domain Name Notation](./packages/reverse_domain_name_notation.md)

- [Visibility II](./visibility_ii.md)
- [Public Classes]()
- [Package-Private Classes]()
- [Public Methods]()
- [Package-Private Methods]()
- [Public Fields]()
- [Package-Private Fields]()
# Data Types IV

- [Integers II](./integers_ii.md)
- [Base 16 Integer Literals]()
- [Base 2 Integer Literals]()
- [Base 8 Integer Literals]()
- [Integer Literal Underscores]()
- [Parse a String]()
- [Parse a String in Base 16]()
- [Unsigned Integers]()
- [Integer to a String]()
- [Integer from a String]()
- [Floating Point Numbers II](./floating_point_numbers_ii.md)
- [Records](./records.md)
- [Declaration](./records/declaration.md)

# Interactive Programs III

@@ -484,10 +492,6 @@



# Data Types

- [Strings III](./strings_ii.md)
- [String Templates]


# Interactive Programs
1 change: 1 addition & 0 deletions src/floating_point_numbers_ii.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Floating Point Numbers II
1 change: 1 addition & 0 deletions src/integers_ii.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Integers II
2 changes: 1 addition & 1 deletion src/multi_file_programs/the_anonymous_main_class.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# The anonymous main class
# The Anonymous Main Class

Surprise! Everything in Java is actually in a class.

3 changes: 2 additions & 1 deletion src/packages/reverse_domain_name_notation.md
Original file line number Diff line number Diff line change
@@ -16,8 +16,9 @@ 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 being written is for an application and 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 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.


[^shared]: That might be mixed with other code written by different companies or by different people.

[^thisiswhy]: This is why many tools will have your starter project have classes in the `com.example` package
8 changes: 4 additions & 4 deletions src/packages/the_anonymous_main_class.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# The anonymous main class
# The Anonymous Main Class

You are only allowed to make an anonymous main class
inside the default package.

```java
```java,no_run
// Allowed
void main() {
System.out.println("Hello, world");
}
```

```java
```java,does_not_compile
// Not Allowed
package myprogram;

@@ -22,7 +22,7 @@ void main() {
This means that for classes in packages you have to wrap them in
an explicitly named class like everything else.

```java
```java,no_run
// Allowed
package myprogram;

8 changes: 8 additions & 0 deletions src/records.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Records

If you have a class whose only purpose is to ferry data around,
you can instead use a `record`.

```java
record Person(String name, int age) {}
```
6 changes: 6 additions & 0 deletions src/records/declaration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Declaration

To declare a record you write the word `record` followed by a
class name, a list of "record components" in parentheses, and a pair of `{}`.

The list of record components look