© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
J. FriesenLearn Java Fundamentalshttps://doi.org/10.1007/979-8-8688-0351-2_5

5. Arrays

Jeff Friesen1  
(1)
Dauphin, MB, Canada
 

Java supports arrays, one of the oldest and most widely used data structures (“a data organization, management, and storage format that is usually chosen for efficient access to data” – see http://en.wikipedia.org/wiki/Data_structure for more information). This chapter introduces you to this support in terms of one-dimensional arrays and two-dimensional arrays. It demonstrates one-dimensional arrays in terms of searching and sorting and two-dimensional arrays in terms of matrix multiplication.

Introducing Arrays

An array is a data structure ...

Get Learn Java Fundamentals: A Primer for Java Development and Programming 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.