FireEdgeX
0

LESSON 05 ยท JAVA

Arrays and indexing

An array stores a fixed-length sequence addressed from index zero.

6 min readIn progress

THE IDEA

Understand the concept

A Java array holds a fixed number of values of one type. Indexing begins at zero, so the last valid index is length minus one; using an invalid index causes a runtime exception.

WORKED EXAMPLE

See it in context

Example