/* @(#)Main.java
 */
/**
 *
 *
 * @author <a href="mailto:shannog@CF405-17.cs.wwu.edu">Geoff Peter Shannon</a>
 */
package wall_follower;

import lejos.hardware.port.SensorPort;
import lejos.hardware.sensor.EV3TouchSensor;
import lejos.hardware.sensor.EV3UltrasonicSensor;
import lejos.hardware.Button;
import lejos.hardware.LCD;

public class Main
{

    private EV3TouchSensor leftTouch;
    private EV3TouchSensor rightTouch;

    private EV3UltrasonicSensor distance;

    public static void main(String[] args) {
        Main current = new Main();
        Button.waitForAnyEvent();
        LCD.clear();
        LCD.drawString("Hello, lein java world!", 1, 3);
    }

    public Main() {
        setupSensors();
    }

    void setupSensors() {
        leftTouch = new EV3TouchSensor(SensorPort.S1);
        rightTouch = new EV3TouchSensor(SensorPort.S4);

        distance = new EV3UltrasonicSensor(SensorPort.S3);
    }


}

@@ -171,16 +171,61 @@
 orPort;%0A
+import lejos.hardware.sensor.EV3ColorSensor;%0A
 import l
@@ -253,32 +253,32 @@
 EV3TouchSensor;%0A
-
 import lejos.har
@@ -468,16 +468,50 @@
 Touch;%0A%0A
+    private EV3ColorSensor color;%0A
     priv
@@ -637,111 +637,195 @@
     
-Button.waitForAnyEvent();%0A        LCD.clear();%0A        LCD.drawString(%22Hello, lein java world!%22, 1, 3);
+boolean done = false;%0A%0A        while (!done) %7B%0A            current.printSensors();%0A            if (Button.waitForAnyPress(100) != 0) %7B%0A                done = true;%0A            %7D%0A        %7D
 %0A   
@@ -1017,16 +1017,67 @@
 t.S4);%0A%0A
+        color = new EV3ColorSensor(SensorPort.S2);%0A
         
@@ -1134,11 +1134,118 @@
 %0A    %7D%0A%0A
+    void printSensors() %7B%0A        LCD.clear();%0A        LCD.drawString(%22Printing sensor data:%22, 0, 0);%0A    %7D
 %0A%7D%0A

Add color sensor and setup loop to show sensor values