Next: 4.2 実行手順
Up: 4 HelloWorldサンプル
Previous: 4 HelloWorldサンプル
import josx.platform.rcx.*;
/**
* @author <a mailto=
* "rvbijl39<at>calvin<dot>edu">Ryan VanderBijl</a>
*/
/* This class uses char[] to display text on the LCD.
* Strings aren't really supported by TinyVM. :-(
*
* This program, after d/ling, waits for you to
* press the RUN button, and then displays "hello",
* for a small delay, and then displays "world".
* (Then a small delay, and then it returns to
* the TinyVM OS).
*/
public class HelloWorld
{
public static void main (String[] aArg)
throws Exception
{
LCD.clear();
TextLCD.print ("hello");
Thread.sleep(2000);
TextLCD.print ("world");
Thread.sleep(2000);
}
}
generated through LaTeX2HTML. M.Inaba 平成18年5月6日