How to use MXP

How do you program using pins from the MXP.
Generally your set up looks something like this

DigitalInput light = new DigitalInput(DIO Port HERE);

But on the MXP the numbers reset back to 0 so how do I define which port I’m using?:

See http://wpilib.screenstepslive.com/s/4485/m/13809/l/145309-java-conventions-for-objects-methods-and-variables

Thank you I found my answer within that link!