Log in

View Full Version : Cannot create a DigitalInput object


Robototes2412
01-03-2010, 20:50
I am working on a switch that would be placed on the robot to let the cRio know if a ball is ready for firing

I am calling:
DigitalInput switch = new DigitalInput(4,1);

and it says i need an identifier. What do I have to do to fix this?

Joe Ross
02-03-2010, 00:10
switch is a reserved word in in java. Try a different name.

Robototes2412
02-03-2010, 00:12
oh, wow

At least it isn't build season anymore! xD