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 |
Methods/functions |
Callable block of code by name |
Classes |
Grouping of methods and member variables. Doesn't exist in memory until you "instantiate" 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 (typically) |
Robot |
class with loop methods invoked by |
RobotContainer |
<Name>Subsystem |
|
|
|