Hello World
Open FRC VS Code, create a file named Main.java, and enter the code below:
Variables and Data Types
Data is information that a program stores and uses. In an FRC robot program, data can include a motor's speed, a sensor reading, whether a button is pressed, or a message shown to the driver.
Conditions and Loops
Conditions let a program make decisions, while loops let it repeat actions. Together, they allow your code to react to driver input, sensor readings, and changing robot states.
Methods
A method is a named group of instructions. It lets us reuse code instead of copying and pasting it.
Classes and Objects
Classes and objects help us keep related information and methods together.