Skip to content

Variables

Store values to use later.

String

Strings are anything in quotes, usually letters or words.

java
String name = "Steve";

int

Integers have NO decimals.

java
int age = 24;

double

Doubles have decimals.

java
double angle = 31.8;

boolean

Booleans are either True or False.

java
boolean isRaining = True;