Defining The Variable For A Encoder In Java?

Hi I am from team#4776 and I am one of the programmers. My team is having a issue on how to define a variable for the motor position in the encoder. If there is anything you guys know please reply.
Thanks,
Scots Bots Robotics #4776