We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8f6745c + 5c30377 commit 0b3b773Copy full SHA for 0b3b773
src/com/codefortomorrow/beginner/chapter2/solutions/VariableTypes.java
@@ -9,6 +9,7 @@
9
10
public class VariableTypes {
11
12
+ @SuppressWarnings("unused")
13
public static void main(String[] args) {
14
// write your code here
15
@@ -19,15 +20,15 @@ public static void main(String[] args) {
19
20
float decimal = 23.32544f;
21
22
// define a double variable on line 21
- double decimal = 23.2352536d;
23
+ double number = 23.2352536;
24
25
// define a boolean variable on line 24 (Hint: true/false)
- double dogsOut = true; // the dogs are out :)
26
+ boolean dogsOut = true; // the dogs are out :)
27
28
// define a character variable on line 27
29
char letter = 'A';
30
31
// define a string variable on line 30
- char name = "Jeff";
32
+ String name = "Jeff";
33
}
34
0 commit comments