Show Menu
Cheatography

FRC Java Cheat Sheet (DRAFT) by

Java as it relates to FRC

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Basics

Statements
A single line of code
Blocks
Lines of code grouped by semicolons
Variables
A named location in memory
Method­s/f­unc­tions
Callable block of code by name
Classes
Grouping of methods and member variables. Doesn't exist in memory until you "­ins­tan­tia­te" them with
new
Packages
Groups of classes (usually a folder)
Variable Scope
Where a variable can be used/seen
Anonymous method
A method declared on the fly, without a name

Common Classes (Types)

primitives
int, double, boolean
List
list of Objects indexed by number
Map
list of Objects indexed by a name (typic­ally)
Robot
class with loop methods invoked by
RobotC­ont­ainer
<Na­me>­Sub­system
 

GIT

 

Drivetrain

 

Concepts

Network Tables