To get good at programming robots, you need to workout in the Java Gym. Here you can find many excellent online Java tutorials with lots of exercises; check out the following and use the one you like:
Edhesive - you'll need to talk to a teacher or mentor to access this one
The more Java you learn, the better your robots will be. Spend enough time working out in the Java Gym and you'll become a RoboCode Master.