Java Reference
In-Depth Information
For example, the following program initializes an array called
sqrs
with the numbers 1
through 10 and their squares:
Here is the output from the program: