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"); } }
13 Respostas
+ 3
System.out.println(name);
Try that it should print the name
+ 2
thanks for all for help
+ 1
the mistake you try to print one variable only
+ 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);
}
}
+ 1
public static void main (String args[]){
}
0
Hi there! Yopu have mistake in System.out.printIn line. Above you decalred 'name' String, but you try to output 'namee'.
0
main method is wrong
0
how to print all varible in single syste.out.println();
0
you must write //
Java .util ;
0
you must write //
Java .util ;
0
in the begining
jar . util .
0
string
system
name
0
David