/*
Implement the print method
*/
public class Solution {
public static void main(String[] args) {
print("Java is easy to learn!");
print("Java opens many opportunities!");
}
public static void print(String s) {
System.out.println(print);
}
}
please help me to solved out this code
Under discussion
Comments (3)
- Popular
- New
- Old
You must be signed in to leave a comment
Abhinav Srivastava
13 November 2019, 18:17
why should it be System.out.println(s)?
0
Mibr_never_lose_to_australis
8 November 2019, 19:57
You cannot use the System.out.println in your solution code.
0
Anthony Chalk
8 November 2019, 13:51
in the print method it should be System.out.println(s);
+2