why it's give me no output | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

why it's give me no output

} class MyClass { public static void main (String [ ] args ) { String name ="David"; int age = 42; double score =15.9; char group = 'z'; } }

1st Jun 2018, 8:14 PM
Toka Mohamed
Toka Mohamed - avatar
6 Answers
+ 2
You can use variables. For example, if you want to print age to screen, you type - System.out.println(age);
1st Jun 2018, 8:27 PM
Sad
Sad - avatar
+ 1
You can use variables however you need
1st Jun 2018, 8:27 PM
Sad
Sad - avatar
+ 1
thanks alot💜❤
1st Jun 2018, 8:28 PM
Toka Mohamed
Toka Mohamed - avatar
0
You should write System.out.print(//some code) or something to use variables Right now you only have declared variables and you are not using them.
1st Jun 2018, 8:23 PM
Sad
Sad - avatar
0
i can't understand i am in the second level so what should i do exactly??
1st Jun 2018, 8:26 PM
Toka Mohamed
Toka Mohamed - avatar
0
You're welcome
1st Jun 2018, 8:29 PM
Sad
Sad - avatar