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 99
1010public 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}
You can’t perform that action at this time.
0 commit comments