Skip to content

Commit f92dee7

Browse files
committed
...
1 parent f80749a commit f92dee7

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@
296296
- [Final Fields](./global_fields/final_fields.md)
297297
- [Field Access](./global_fields/field_access.md)
298298
- [Inferred Types](./global_fields/inferred_types.md)
299+
- [Challenges](./global_fields/challenges.md)
299300

300301
# Concepts
301302

src/classes/challenges.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void main() {
4949
Alter the `ThemePark` class so that the default value
5050
for its `entranceFee` field is `35.24`.
5151

52-
```java
52+
```java,editable
5353
class ThemePark {
5454
double entranceFee;
5555
}
@@ -71,7 +71,7 @@ program.
7171

7272
Hint: Remember that inferred types exist.
7373

74-
```java
74+
```java,editable
7575
class Kermit {
7676
boolean angry = true;
7777
}
@@ -99,7 +99,7 @@ You do not have to account for the possibility of being given a negative
9999
number. You should use `Math.sqrt` to find the positive root and common
100100
sense to find the negative root.
101101

102-
```java
102+
```java,editable
103103
class SquareRoot {
104104
double positiveRoot;
105105
double negativeRoot;
@@ -132,7 +132,7 @@ Only writing code between the lines and without directly accessing any fields on
132132

133133
Hint: The key word is "directly."
134134

135-
```java
135+
```java,editable
136136
class Actor {
137137
String name;
138138
}

src/classes/instances.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ Very similarly to arrays, the output from printing an instance of a class might
1919
You will learn how to make it nicer later.
2020

2121
[^var]: I haven't used it in many code samples thus far, but if you remember `var` this is one of the times
22-
where it can be aethetically convenient. `var kermit = new Muppet();`
22+
where it can be aesthetically convenient. `var kermit = new Muppet();`

0 commit comments

Comments
 (0)