Dashboard > GridGain User Guide > Code Snippet 1
Code Snippet 1
Added by Nikita Ivanov, last edited by Nikita Ivanov on Feb 27, 2007  (view change)
Labels: 
(None)


/**
 * 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);
    }
}

Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.10 Build:#528 Nov 29, 2006) - Bug/feature request - Contact Administrators