Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Cannot create a DigitalInput object (http://www.chiefdelphi.com/forums/showthread.php?t=83765)

Robototes2412 01-03-2010 20:50

Cannot create a DigitalInput object
 
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:
Code:

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

Re: Cannot create a DigitalInput object
 
switch is a reserved word in in java. Try a different name.

Robototes2412 02-03-2010 00:12

Re: Cannot create a DigitalInput object
 
oh, wow

At least it isn't build season anymore! xD


All times are GMT -5. The time now is 09:26.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi