Hi,
You can use, to achieve the macro behavior, a static method.
public class Utils {
public static void print(String text) {
System.out.println(text);
}
}
And then, is just call it:
Utils.print("OK!");
I hope this has helped you
Best regards:
Filipe Marques