Skip to content

Commit e535ee1

Browse files
bowbahdoeomniprof
andauthored
Minor fixes (#58)
* Update initialization.md * Add footnote softening the use of "wrong" Co-Authored-By: Ken Fogel <[email protected]> --------- Co-authored-by: Ken Fogel <[email protected]>
1 parent 7aa02e6 commit e535ee1

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/static_fields/initialization.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class Main {
2828
static String name = "bob";
2929

3030
void main() {
31-
System.out.println(count); // 0
32-
System.out.println(name); // null
31+
System.out.println(count); // 5
32+
System.out.println(name); // bob
3333
}
3434
}
3535
```
@@ -48,8 +48,8 @@ class Main {
4848
}
4949

5050
void main() {
51-
System.out.println(count); // 0
52-
System.out.println(name); // null
51+
System.out.println(count); // 5
52+
System.out.println(name); // bob
5353
}
5454
}
5555
```

src/variables/challenges.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void main() {
9090

9191
## Challenge 5
9292

93-
Some of the variables in this program are named "wrong." Fix them.
93+
Some of the variables in this program are named "wrong."[^byconvention] Fix them.
9494

9595
```java,editable
9696
void main() {
@@ -100,4 +100,6 @@ void main() {
100100
String FASTRunner = "bolt";
101101
String slowRunner = "tortoise";
102102
}
103-
```
103+
```
104+
105+
[^byconvention]: By currently prevalent social conventions. None are actually "wrong" from the perspective of Java.

0 commit comments

Comments
 (0)