In this part of the course, we are going to talk about variables. A 'variable' is something that makes a computer program very useful. So what is a 'variable'? Well a variable is a 'place' in memory think of it like a 'box' if you will that you can store something in. And the computer allows you to have hundreds or thousands of 'boxes', each containing their own pieces of information. So what we do with our 'variable', that's what it's called in Java, that 'box' is called a 'variable', and what we can do is we can assign the type of information that we want to put into the 'boxes' and we can also give it a name. So why would we want to use variables? Well the reason that we want to use them, is because they make a program really useful. If, for example, if there was a computer program that you wanted to create that helped calculate someone's current age based on the date, then o...
Comments
Post a Comment