Practical Coding in Java

Learn to write and validate your own code

Darren Kessner, PhD

(revised October 21, 2025)

Previous: Coding Exercises: Classes and Objects

5. Arrays

In this chapter we explore arrays, which allow you to store, modify, and retrieve large blocks of data.

In the examples you will see how to declare, initialize, and accesss arrays. You will also learn how to iterate through arrays using loops. And you will practice performing calculations on arrays.


Next: