r/FTC • FTC Mentor • 3d ago

Seeking Help Learning Java

I’m a parent coach for a community team. The boys had planned to use a hybrid of blocks and Java this year so more members could contribute, but we just learned today that the pedropathing they want to do won’t work with any kind of hybrid code.

Does anyone have a resource experienced block coders could use to get comfortable with Java? Unfortunately, our blocks coders aren’t scheduled to take the AP Java class until next semester.

6 Upvotes

11 comments sorted by

8

u/4193-4194 FTC 4193/4194 Mentor 3d ago edited 3d ago

Learn JAVA for FTC is a great book. Free github pdf or buy from Amazon.

If they are experienced in blocks try having them toggle the check box and see the JAVA code for a blocks program they wrote. They can also read the SDK example JAVA code.

And if you want to separate learning Android Studio from learning JAVA then try onBot JAVA.

1

u/IceCreamAficionado8 FTC Mentor 3d ago

Thanks! Downloading the book now. I think one of them was playing in onBot some.

5

u/Cross_22 3d ago

Have them work through the hello-robot-java tutorial here:
https://docs.revrobotics.com/duo-control/hello-robot-java/welcome

5

u/iowanerdette FTC 10656 | 20404 Coach 3d ago

Also check out Brogan Pratt's videos that follow the Learn FTC for Java book.

1

u/few 3d ago

FTCsim can be used for both blocks and Java.

https://ftcsim.org/

1

u/IceCreamAficionado8 FTC Mentor 3d ago

Will it work with the Pedropathing?

3

u/Electronic-Win4983 FTC 14259 Student 2d ago

I don't believe it functions with libraries like Pedro, Ivy, etc, but sims like these will teach basic features like moving motors and servos.

2

u/few 2d ago

It will help them learn Java. Then they will understand the basics of Java, and can start learning to use the PedroPathing Java libraries.

2

u/jk1962 FTC 31874 Mentor 16h ago

virtual_robot works with Pedropathing (and Ivy), and also has a "programming board" robot configuration that can be used to do the exercises in the "Learn Java For FTC" book referenced above.

3

u/cwm9 FRC2465/FTC20311 Mentor 2d ago

2

u/Potential-Way-4821 FTC 25779 Team 2d ago

Hey use this video to get some tips: https://www.youtube.com/watch?v=rq12ZPOOqFI&t=102s