Skip to content

Learn Java

12sliu edited this page Sep 29, 2023 · 4 revisions

☕ 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 return true if myCar is an instance of a Vehicle or of a class which extends Vehicle.
  • Control Structures - if; else; while; for; 'switch';

Clone this wiki locally