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
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 đ