What is the error in this code please? Whenever I try to run it it's used to show me 👉The print method should display the strings for times. Each time in a new line. Shade me more light on this please.
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
for (int i=0; i<4; i++);
System.out.println(s);
}
}