//Listing 6.2. Konstruktor obiektu SensorRobot

1    public softbot5() throws Exception 
2    { 
3	 Log = new PrintWriter("Softbot5.log");    
4	 ColorVision = new HiTechnicColorSensor(SensorPort.S2); 
5    }