File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/com/codefortomorrow/beginner/chapter2/solutions Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 9
9
10
10
public class VariableTypes {
11
11
12
+ @ SuppressWarnings ("unused" )
12
13
public static void main (String [] args ) {
13
14
// write your code here
14
15
@@ -19,15 +20,15 @@ public static void main(String[] args) {
19
20
float decimal = 23.32544f ;
20
21
21
22
// define a double variable on line 21
22
- double decimal = 23.2352536d ;
23
+ double number = 23.2352536 ;
23
24
24
25
// 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 :)
26
27
27
28
// define a character variable on line 27
28
29
char letter = 'A' ;
29
30
30
31
// define a string variable on line 30
31
- char name = "Jeff" ;
32
+ String name = "Jeff" ;
32
33
}
33
34
}
You can’t perform that action at this time.
0 commit comments