Saturday, September 13, 2008
Java Tutorial 2: Variables
Here is some Variable Type. Please understand that it is NOT a part of the above video clip. It is provided for education purpose only.
* int -- Stores a whole number
* double -- Stores a decimal
* float -- Stores a floating point number
* boolean -- Stores a true/false value
* String -- Stores a collection of characters. Note that this type name starts with a capital letter
* char -- Stores a single character
For example:
* int someNumber = 0;
* double someDouble = 535.29;
* float someDecimal = 7.43f;
* boolean trueFalse = false;
* String someSentence = "Java from vn4000 wbsite";
* char someChar = 'v';