How to declare a variable

Naming recomendation:

  • start variable names with a lowercase letter and capitalize the first letter in all words.
  • Each variable name should be a noun or a noun proceded by one or more adjectives.

How to declare and initalize a variable in one statement .

type variableName = value;

Examples

  • int scoreCounter = 1;
  • double unitPrice = 19.99;

How to code assignment statements

  • quantity = 10;
  • quantity = maxQuantity