File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ void main() {
24
24
}
25
25
```
26
26
27
- We call these primitives which might be null "Boxed Primitives" because you they are made by taking
27
+ We call these primitives which might be null "Boxed Primitives" because they are made by taking
28
28
the underlying thing and putting it in a "box."[ ^ boxing ]
29
29
30
30
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ The type to use for a `boolean` that might be null is `Boolean`.
8
8
Boolean b = null ;
9
9
System . out. println(b);
10
10
b = true ;
11
- System . out. println(true );
11
+ System . out. println(b );
12
12
~ }
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ void main() {
28
28
29
29
## Challenge 2.
30
30
31
- Write a method which takes in a ` Integer[] ` representing
31
+ Write a method which takes in an ` Integer[] ` representing
32
32
a series of distances and prints out every distance
33
33
followed by ` kilometers ` .
34
34
@@ -50,7 +50,7 @@ void printDistances(Integer[] distances) {
50
50
}
51
51
52
52
void main() {
53
- printNames (new String [] {
53
+ printDistances (new Integer [] {
54
54
45,
55
55
99,
56
56
23
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ System.out.println(c);
11
11
~ }
12
12
```
13
13
14
- Unlike a ` char[] ` , a ` Character[] ` will not be have its contents
14
+ Unlike a ` char[] ` , a ` Character[] ` will not have its contents
15
15
shown when printed.
16
16
17
17
``` java
You can’t perform that action at this time.
0 commit comments