Up to this point, every variable you have created holds a single value. One number, one string, one boolean. But programs rarely work with isolated values. You need to store a list of scores, a set of names, or a sequence of sensor readings.
In this section, I'll show you how Java handles collections of values using arrays. You'll learn how to declare, fill, read, and loop through arrays. You'll also see the built-in utility methods Java provides and why arrays have one limitation that leads directly to the next section.