Java provides a data structure, the array, which stores a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to ...
100 variables would be required! Note - some programming languages also require the array's data type to be declared. Once declared, the name and structure of an array cannot be changed.
For example, when creating a program for a bowling alley and storing each player’s name you could declare five different variables instead of using an array: However, this is inefficient and ...