/** * Hello world example. */ public class HelloWorldExample { /** * Main entry point. * * @param args Command line arguments. */ public static void main(String[] args) { sayIt(args.length > 0 ? args[0] : "hello world!"); } /** * Prints given <tt>text</tt> to standard output. * * @param text Text to print. */ public static void sayIt(String text) { System.out.println(text); } }
