// HelloWorld.java // // The usual HelloWorld program, with a twist --- this version // runs under LeJOS on the Lego NXT. // // Simon Parsons // 26th September 2013 // We need the LeJOS class that deals with the NXT Buttons. import lejos.nxt.Button; // Just like the usual HelloWorld, but we use a Button wait to make // the text visible. public class HelloWorld { public static void main (String[] args) { System.out.println("Hello World"); Button.waitForAnyPress(); } }