import josx.platform.rcx.*; public class Motor1 { public static void main (String[] args) throws Exception { // run the "A" motor forward TextLCD.print (" A "); Motor.A.forward(); Thread.sleep(2000); Motor.A.stop(); // run the "A" motor backward Motor.A.backward(); Thread.sleep(2000); Motor.A.stop(); // run the "C" motor forward TextLCD.print (" C "); Motor.C.forward(); Thread.sleep(2000); Motor.C.stop(); // run the "C" motor forward Motor.C.backward(); Thread.sleep(2000); Motor.C.stop(); } }