Java Tutorial #2 – Variables and Data Types

In tutorial 2, we introduce the concept of variables and data types. A variable is like a container in your program. It’s a place to store things. If you want to keep a number or some text, then you can put it in a variable. Each variable has a data type, which just tells Java what you’re going to put in that variable. There are several data types, but in this tutorial we will only cover the most useful ones.

http://www.javaomatic.com/javalesson2.html