0

Why it is not giving output ?

19th Jul 2016, 4:26 PM
Tanmay Singh
11 odpowiedzi
+ 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
19th Jul 2016, 5:28 PM
The Eagle
The Eagle - avatar
+ 2
no system.out.print
19th Jul 2016, 5:24 PM
Rohit Ganiga
Rohit Ganiga - avatar
+ 2
Simply write System.out.println(variableName); Or System.out.print(variableName); to display it to the console.
19th Jul 2016, 5:31 PM
Ousmane Diaw
0
what?
19th Jul 2016, 4:30 PM
Manjul Das
0
nothing to help you
19th Jul 2016, 4:45 PM
Trust Ugochukwu
Trust Ugochukwu - avatar
0
you should tell us some code to give you any answer...
19th Jul 2016, 5:12 PM
The Eagle
The Eagle - avatar
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?
19th Jul 2016, 5:18 PM
Tanmay Singh
0
becoz u havnt written wht u wanna print eg system.out.println(name);to display to d console
27th Jul 2016, 11:07 AM
mehavi doshi
mehavi doshi - avatar
0
you simply assigned values doest use any print line statement to show.
27th Jul 2016, 1:50 PM
Rajesh
0
Its probably the same output
1st Aug 2016, 4:36 PM
mich le'
mich le' - avatar
0
u didn't write system.out.println @tanmay singh
4th Aug 2016, 6:10 AM
kiran akula
kiran akula - avatar