📄️ 3.1 - Variables & Data Types
Every FTC program you write will need to remember things. In Java, we store and work with this information using variables.
📄️ 3.2 - Operators
Now that you know how to store data in variables, you need to know how to work with that data. In Java, we use operators to perform calculations, make comparisons, and combine values.
📄️ 3.3 - Statements & Loops
Variables store data and operators work with it, but how do you make your robot decide what to do? Control flow statements let your program make choices and repeat actions based on conditions.
📄️ 3.4 - Methods (Functions)
So far you've learned to store data and make decisions. But what happens when you need to do the same task multiple times? Methods (also called functions) let you package up code into reusable blocks that you can call whenever you need them.
📄️ 3.5 - Classes & Objects
You've learned about variables, methods, and control flow. Now it's time to put them all together. Classes are blueprints that let you create your own custom "data types", and objects are instances of those classes.
📄️ 3.6 - Access Modifiers
Access modifiers control who can see and use your variables and methods.
📄️ 3.7 - Extra Data Types
Beyond the basic data types (int, double, boolean, String), Java has specialized types for specific situations.
📄️ 3.8 - Arrays
Documents are groups of pages connected through: