Hi,
Im trying to reun the above task in IntelliJ idea and I cant use System.out.println in print3 method in intelli j idea,
Im getting error as follows
My program:
package com.codegym.task.task02.task0218;
/*
Repetition is the mother of all learning
*/
public class Solution {
public static void print3(String s) {
//write your code here
for(int i=0;i<3;i++){
system.out.println(s);
}
}
public static void main(String[] args) {
print3("I love you!");
}
}
Error is
THe package doesnt compile on server
Package system does not exist
package com.codegym.task.task02.task0218;
/*
Repetition is the mother of all learning
*/
public class Solution {
public static void print3(String s) {
//write your code here
for(int i=0;i<3;i++){
system.out.println(s);
}
}
public static void main(String[] args) {
print3("I love you!");
}
}