I didn't understand when did we defined main value as equal to String S.
The main method wasn't assigned the string value
Resolved
Comments (3)
- Popular
- New
- Old
You must be signed in to leave a comment
Massimo Lorenzi
19 October 2020, 15:07
why makes me wrong on line number 10 ?
0
Misiu
19 October 2020, 17:47
What is on line number 10?
0
Misiu
17 October 2020, 13:04solution
Instruction:
print("Java is easy to learn!");
says:
"Java is easy to learn!" is the value that goes to s parameter of print(String s) method.
So:
public static void print(String s) { // here s is equal "Java is easy to learn!"
System.out.println(s);
}
will result as:
Java is easy to learn!
+3