Skip to content

Commit 0b3b773

Browse files
authored
Merge pull request #27 from code4tomorrow/fix-pr-22
Fix VariableTypes solution errors
2 parents 8f6745c + 5c30377 commit 0b3b773

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/com/codefortomorrow/beginner/chapter2/solutions/VariableTypes.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
public class VariableTypes {
1111

12+
@SuppressWarnings("unused")
1213
public static void main(String[] args) {
1314
// write your code here
1415

@@ -19,15 +20,15 @@ public static void main(String[] args) {
1920
float decimal = 23.32544f;
2021

2122
// define a double variable on line 21
22-
double decimal = 23.2352536d;
23+
double number = 23.2352536;
2324

2425
// define a boolean variable on line 24 (Hint: true/false)
25-
double dogsOut = true; // the dogs are out :)
26+
boolean dogsOut = true; // the dogs are out :)
2627

2728
// define a character variable on line 27
2829
char letter = 'A';
2930

3031
// define a string variable on line 30
31-
char name = "Jeff";
32+
String name = "Jeff";
3233
}
3334
}

0 commit comments

Comments
 (0)