package RCX3.docs; import josx.platform.rcx.SensorListener; import josx.platform.rcx.Sensor; import josx.platform.rcx.LCD; /** *A listener for the rotation sensor (for turns). */ public class RotationListener implements SensorListener{ public void stateChanged (Sensor aSource, int aOldValue, int aNewValue){ LCD.showNumber(aNewValue); }//stateChanged }//Rotation Listener