0

Please explain

I do not understand what you use string name and int age and double score and char group for because it has no output. And if I used boolean where would I put it and would there be an output. Thank you

2nd Feb 2019, 1:06 AM
Tiana Paraone
Tiana Paraone - avatar
1 Answer
+ 14
Hy Tiana Paraone ● See 3rd comment in the lesson(where code is present) : https://www.sololearn.com/learn/Java/2139/ , someone posted code to print all the data in form of a sentence. ● U can use System.out.print(variable_name); to print value present in variable. For example: boolean a=true; System.out.print(a); //outputs "true" ● follow comment section after each lesson for better understanding & modify codes to see different results 👍
2nd Feb 2019, 3:33 AM
Gaurav Agrawal
Gaurav Agrawal - avatar