In the print method, display the passed string 4 times. Each time, on a new line. Requisiti: • The program should display text on the screen. • The main method should not call System.out.println or System.out.print. • The print method should display the text on the screen. • The main method should call the Solution class's print method exactly three times. • The print method should display the string 4 times. Each time, on a new line.
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
      System.out.println(print);
      System.out.println(print);
       System.ou.println(print);
    }
}