There isn't really a best way. You have to self-explore with guidance from tutorials, guides, books, or mentors.
There is a Getting Started guide for specifically programming for the robot available on this page
http://first.wpi.edu/FRC/frcjava.html
There are plenty of resources available to help you and there's always places and people to ask questions if you get stuck.