I believe that my solution to this task is correct but it keeps sending me an error saying that a class, interface or enum was expected on the main method.
package com.codegym.task.task03.task0302;
/*
Display right away
*/
public class Solution {
// write your code here
public static void printString(String s) {
System.out.println(s);
}
}
public static void main(String[] args) {
printString("Hello, Amigo!");
}
}