0

what is the mistake in code. and what is output of code. its not working

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

29th Oct 2016, 8:35 AM
Sahil
Sahil - avatar
13 odpowiedzi
+ 3
System.out.println(name); Try that it should print the name
29th Oct 2016, 10:06 AM
Fateen Ahmad
Fateen Ahmad - avatar
+ 2
thanks for all for help
30th Oct 2016, 1:59 AM
Sahil
Sahil - avatar
+ 1
the mistake you try to print one variable only
29th Oct 2016, 8:52 AM
fulla
fulla - avatar
+ 1
I run this class MyClass { public static void main(String[ ] args) { String name ="David"; int age = 42; double score =15.9; char group = 'Z'; System.out.println (name); } }
29th Oct 2016, 1:48 PM
juan garcia de paso
juan garcia de paso - avatar
+ 1
public static void main (String args[]){ }
31st Oct 2016, 5:10 AM
Akeem Shan
Akeem Shan - avatar
0
Hi there! Yopu have mistake in System.out.printIn line. Above you decalred 'name' String, but you try to output 'namee'.
29th Oct 2016, 8:48 AM
Dima Simonishvili
Dima Simonishvili - avatar
0
main method is wrong
31st Oct 2016, 5:09 AM
Akeem Shan
Akeem Shan - avatar
0
how to print all varible in single syste.out.println();
14th Jun 2017, 9:08 AM
kishan patel
kishan patel - avatar
0
you must write // Java .util ;
15th Aug 2017, 12:05 PM
fulla
fulla - avatar
0
you must write // Java .util ;
15th Aug 2017, 12:05 PM
fulla
fulla - avatar
0
in the begining jar . util .
15th Aug 2017, 12:12 PM
fulla
fulla - avatar
0
string system name
30th Jul 2020, 10:35 AM
kedir.y
kedir.y - avatar
0
David
19th Nov 2022, 9:36 PM
Amanuel Mekonnen Eshete
Amanuel Mekonnen Eshete - avatar