You are on page 1of 2

Lesson 2..

Variable Types (String, int, double)


Three variable types:

String
Sample code:

int
Sample code:

double
Sample code:

Declaring and initializing:

double

two

declaring x

initializing x

two

Whats legal and whats not:

Rules for variable names:

Legal names

Variable naming conventions

double and

Illegal names