Sign up for FlowVella
Sign up with FacebookAlready have an account? Sign in now
By registering you are agreeing to our
Terms of Service
Loading Flow
Variable Declaration
+ A Java variable is made by declaring the type (int) and providing a unique name (number).
- int number;
+ We can assign a value to the variable
- number = 100;
Variables as Boxes
Pretend you are moving houses, we can only put kitchen utensils into the box labelled kitchen
Variable
We reserve a piece of computer memory that has a type identifier and stores a value of that type.
MY VIDEO TITLE
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi auctor nibh vitae est faucibus consectetur.
Variables in Memory
When we declare a variable, a block of memory stores the value that we assign to the variable