0
Why it is not giving output ?
11 Antworten
+ 3
i was looking your code to send you equal answer by explainin that younshould use System.out.println(name+","+age+","+score+","+group ); this is correct output to show them in one line
+ 2
no system.out.print
+ 2
Simply write System.out.println(variableName);
Or System.out.print(variableName); to display it to the console.
0
what?
0
nothing to help you
0
you should tell us some code to give you any answer...
0
class MyClass {
public static void main(String[ ] args) {
String name ="David";
int age = 42;
double score =15.9;
char group = 'Z';
}
}
this is not giving any output.
why?
0
becoz u havnt written wht u wanna print eg system.out.println(name);to display to d console
0
you simply assigned values doest use any print line statement to show.
0
Its probably the same output
0
u didn't write system.out.println @tanmay singh