Java Training Overview
What this track covers
These lessons teach Java from the ground up, with examples that also show up in FTC and FRC code. You do not need prior programming experience.
Why teams use Java
- FTC robot code is written in Java (OnBot Java or Android Studio).
- FRC teams commonly use Java with WPILib.
- The language is strongly typed and object-oriented, which matches how robot projects are structured.
- The same skills transfer to coursework, internships, and other languages.
How the lessons are grouped
Work through the sidebar groups in order when you can. Each group assumes the ones above it.
- Java Basics: Printing, variables, math, and arrays.
- Programming Logic: Conditionals, methods, control flow, and try/catch.
- Loops and Iteration:
forandwhileloops and when to use each. - Object-Oriented Programming: Classes, objects, inheritance, interfaces, and polymorphism.
Later groups in the full Java section cover data structures, algorithms, lambdas, design patterns, concurrency, and Git. The Java section overview lists all of them.
How to work through a lesson
- Read the explanation, then run or type the examples.
- Do the exercises at the bottom before moving on.
- Use search if you need to revisit one topic.
What you need
- A computer and a browser (for lessons here) or a JDK (see Setting Up Java Locally).
- Patience to fix small syntax errors; that is normal.
Next step
If you will compile on your own machine, continue to Setting Up Java Locally (java-setup). Otherwise start with Java Printing (java-printing) and use the in-browser Run button on code blocks.
Quick Navigation
Pre-Assessment
Before starting the lessons, take a moment to assess your current knowledge:
- Do you have any prior programming experience?
- What do you hope to achieve with Java programming?
- Are you planning to use Java for robotics (FTC/FRC) or general programming?
- How much time can you dedicate to learning each week?
// This is where your Java journey begins!
// In the next lesson, you'll write your first Java program
// and learn about the basic structure of Java code.