| Type | Description | |
| int | Stores whole numbers | |
| double | Stores decimals | |
| boolean | Stores true or false | |
| char | Stores single characters | |
| String | Stores lots of chars |
Examples of those above could be 14 (int), 3.14 (double), true (boolean), "h" (char) and "Hello World" (String).
We had the example in the previous section of setting the variable named helloWorld to equal 1. Here are some examples for the datatypes mentioned above. First a note about these variables I've declared them without a public or private on the front which means that they are variables for inclusion in a method, but this comes a tiny bit later on. Dont worry about it :-).
You'll note that these all take the same form of variableName = someValueHere;, this is important to remember! Use a single equals sign for variable assignment. You'll find out the significance of this soon enough...