This tutorial results from the official leJos web site.
Let us start with a simple “Hello World” program. We will create a HelloWorld class in the default java package:
public class HelloWorld
{
}
leJosRT requires the standard main method for the program entry point:
public class HelloWorld {
public static void main
(String[] args
) { }
}