-
Notifications
You must be signed in to change notification settings - Fork 3
Learn Java
Oliver Geer edited this page Aug 29, 2024
·
8 revisions
For Robotics rather than Java learning resources, click here.
The FRC uses a strictly-typed, object-oriented programming language called Java. Although it may look very different to other languages at first, the FRC is a perfect opportunity to use its power in making large-scale projects! Here are some good tutorials on Java in general:
A ⭐ is next to the each of the most important sections.
- ⭐ Java Basics + Object-Oriented Programming Quiz
- Understanding Object-Oriented Programming in Java with a Minecraft Example
- CodeCademy Java Beginners' Course
- A Brief Summary - Code examples to give a refresher if you have programmed with Java or a very similar language (i.e. C#) before
- w3schools Tutorials - More-in-depth tutorials with many code examples for lots of Java's features.
- ⭐ Object-Oriented Programming - Classes, Interfaces, Inheritance, etc. and how to use them in Java
- ⭐ Declaring Variables - This is slightly different to Python/JavaScript due to strict types.
-
Wrapping Up Operators
-
myCar instanceof Vehiclewill only returntrueifmyCaris an instance of aVehicleor of a class whichextends Vehicle
-
- ⭐ Control Structures -
if;else;while;for - Switch Statements
- Google - Please ensure you are looking for the FRC (not FTC) and the Java WPILib setup (not C++ or LabView).