Java: Assignment Statment
The assignment statement:
- assigns a value to a variable
- is used to assign a memory location to a variable
- you can tell the assignment statement by the single equal sign =
- the value and the variable must be of the same data type
- the variable on the left is being changed to the value on the left
- it is often confused with the comparison operator == which will compare two values and check to see if they are the same
Examples: