Section 7.4 Examples Using Arrays

• A program can create an array and initialize its elements with an array initializer (p. 248).

• Constant variables (p. 250) are declared with keyword final, must be initialized before they’re used and cannot be modified thereafter.

Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.