Would the following approach work ? (I am aware of the utter dumbness of it, but still)
new TouchSensor(SensorPort.S1)
new TouchSensor(SensorPort.S2)
new TouchSensor(SensorPort.S3)
new TouchSensor(SensorPort.S4)
And then do some kind of check or value read, and see where it works, and eliminate where it fails ?
The problem is: NXT brick = limited memory and no garbage collection. Oh joy
My apologies if this is a very stupid question, we've just started out experimenting with Lejos

