package class4_1_Observer; // MSOE. Dr. Yoder. 06 January 2016. public class SimplePositionObserver implements PositionObserver { /** * Just printss the currrent position * * This method will automatically be called each second. * (A more general solution would include the time-stamp.) * * @param positionMeters the current position, in meters */ @Override public void update(double positionMeters) { // Compute position System.out.println("Now we are at: "+positionMeters+" m"); } }