Help! with limit switches

Hi our team is on the brink of finishing our robot but we have absolutely no idea how to program limit switches for our lift and cannot find any thing online.

Help-

-Thank you

Hey I think I have something figured out on my post I got all kinds of help from everyone if you wanna check it out here is the link http://www.chiefdelphi.com/forums/showthread.php?t=133983&page=4.

Alright, thank you,

I’ll try it out tomorrow!

Where in eclipse do we put the code?

My code is located in: YourProjectName/src/org.usfirst.frc.teamxxxx.robot/Robot.java