Java Programming Fundamentals
Java on Mantik
These lessons teach Java from the ground up, with examples that also show up in FTC and FRC projects. 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.
Module map
The sidebar groups are meant to be taken in order when you can.
- 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 through polymorphism.
- Data Structures: Arrays, lists, stacks, queues, trees, and graphs.
- Common Algorithms: Search, sort, traversals, recursion, and dynamic programming.
- Functions as Data: Lambdas, method references, and functional interfaces.
- Design Patterns: Factory methods, dependency injection, and commands.
- Concurrency and Multithreading: Threads, races, executors, and thread-safe collections.
- Version Control with Git & GitHub: Branches, remotes, and team workflow.
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 for local practice.
- Patience to fix small syntax errors; that is normal.
Getting started
Open Java Training Overview in Java Basics (java-intro), then either Setting Up Java Locally or Java Printing depending on whether you compile on your machine.
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.