Skip to content

Variables

Up to this point, we have been using variables that hold one piece of data.

Variables

Practice Exercise

Another word for a variable that holds a single piece of data is scalar.

Data collections are, as the name implies, collections of multiple pieces of data.

Arrays are one of the primary data collections in Java.

An array allows us to have a single variable that points to multiple pieces of data.

Variables


Prev -- Up -- Next