Zebra0.com

java variablesVariables

Variables

A program that always displays the same message can get a bit boring. Most programs get some information, do some calculations, then display the results of the calculations.

Information is stored in memory as variables. Variables can vary, or change. Before a variable can be used, it must be declared. To declare a variable, first decide what type of information you want to store:

NEXT: Drill on type