Java tutorial
Java Data Types
A type tells Java what kind of value a variable can hold. int stores whole numbers, double stores numbers with a fraction, char stores one character, boolean stores true or false, and String stores text.
Edit the code and run it again. This runner stays in your browser and covers the syntax used in these lessons.
Output
Run the example to see output here.
What this code does
Each variable uses a different type. Printing them shows the whole number, the decimal number, the character, the boolean, and the text.