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 8
8
*/
9
9
10
10
public class VariableTypes {
11
+ @ SuppressWarnings ("unused" )
11
12
public static void main (String [] args ) {
12
13
// write your code here
13
14
@@ -18,16 +19,16 @@ public static void main(String[] args) {
18
19
float decimal = 23.32544f ;
19
20
20
21
// define a double variable on line 21
21
- double decimal = 23.2352536d ;
22
+ double number = 23.2352536 ;
22
23
23
24
// define a boolean variable on line 24 (Hint: true/false)
24
- double dogsOut = true ; // the dogs are out :)
25
+ boolean dogsOut = true ; // the dogs are out :)
25
26
26
27
// define a character variable on line 27
27
28
char letter = 'A' ;
28
29
29
30
// define a string variable on line 30
30
- char name = "Jeff" ;
31
+ String name = "Jeff" ;
31
32
32
33
}
33
34
}
You can’t perform that action at this time.
0 commit comments