1.11 Arrays
Introduction
An array is a fixed-size, ordered collection of elements of the same type, indexed from 0. Arrays are reference types in Java — declaring one creates a reference; the actual storage is allocated separately, either with `new` or an array literal.
Key Concepts
Java Syntax
Code Examples
The indexed loop prints each score with its position. The for-each loop sums every element without needing an index variable.