Array Index

A zero-based number that identifies an element's position in an array.

What is Array Index in Java?

Array Index — A zero-based number that identifies an element's position in an array.

class Route {
    String[] stops = {"Oak", "Pine", "Lake"};
    String secondStop = stops[1];
    int stopCount = stops.length;
}

Level: Apprentice · More Java terms at this level

Updated

In other subjects