Friday, January 23, 2015

Chapter 3

Variables are used to hold something; a number, a value, or a frase.
Variables are created by a type and a name.
Floats need and "f" or they will be read as a double.
Java wont let you put a large variable into a smaller one.

Names cannot start with a number.
They can start with letters or $ or a _.
Names cannot be any of Java's reserved words (below).

No comments:

Post a Comment