not sure how to implement print from main.
my code below
package com.codegym.task.task02.task0201;
/*
Implement the print method
*/
public class Solution {
public static void main(String[] args) {
print("Java is easy to learn!");
print("Java is object-oriented!");
print("Java is platform-independent!");
}
public static void print(String s) {
//write your code here
s = String main();
System.out.println(s);
System.out.println(s);
System.out.println(s);
System.out.println(s);
package com.codegym.task.task02.task0201;
/*
Implement the print method
*/
public class Solution {
public static void main(String[] args) {
print("Java is easy to learn!");
print("Java is object-oriented!");
print("Java is platform-independent!");
}
public static void print(String s) {
//write your code here
s = String main();
System.out.println(s);
System.out.println(s);
System.out.println(s);
System.out.println(s);
}
}