Back To Home

Tutorial #3

Learning the variables

This is the most important part of this entire Java coding course so pay very close attention!

Let's dive right in! To start here are the main variable types in java you will use. Remember these are all in the correct case so make sure you really take a good look at all of their case

int

String

boolean

Double

Now let's break these 4 types of variables down. The int is an integer which can be any number that is not a fraction (ex. 0.5, 1.25 You will learn these later), a good way to think of a String is as a string of text just like what your are reading right now, a String allows you to store text as a variable, Next you have the boolean which is basically an on and off switch but instead of on and off you use true and false and finally we have the Double which I mentioned earlier that can store rational numbers such as 0.5 or 2.25 and integers.