Photo Eye Sensor Code Help - 3042

Greetings, we are from Team 3042.

How would you code the photo eye sensor in java? We tried looking around the internet and can’t find anything. Thanks in advance for your help!

Salutations, nous sommes de l’équipe 3042.

Comment voulez-vous coder le capteur oculaire photo en java? Nous avons essayé de regarder autour de l’Internet et ne pouvons pas trouver quelque chose. Merci d’avance pour votre aide!

What is the sensor model/manufacturer? Are you referring to the line sensor that was included in the 2011 KOP?

Actually we got it all figured out thanks for responding though arigato!
We used: edu.wpi.first.wpilibj.DigitalInput.DigitalInput ( int channel )

En fait, nous avons tout compris grâce pour répondre si arigato!
Nous avons utilisé: edu.wpi.first.wpilibj.DigitalInput.DigitalInput ( int channel )