Learn Java - Brighton-FTC/FTC-2023 GitHub Wiki
☕ Learn Java
The FTC uses a strictly-typed, object-oriented programming language called Java. Although it may look very different to other languages at first, the FTC 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.
- A Brief Summary - Code examples to give a refresher if you have programmed with Java or a very similar language before
- ⭐ 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 Vehicle
will only returntrue
ifmyCar
is an instance of aVehicle
or a class whichextends Vehicle
- ⭐ Control Structures -
if
;else
;while
;for
- Switch Statements