Array Index
noun
say it: “uh-RAY IN-deks” /əˈreɪ ˈɪndɛks/
The position number of an element in an array, counting from 0 for the first one.
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;
}
In a sentence
- “The first student is at index 0, so the tenth is at index 9.”
Level: Apprentice · More Java terms at this level
Updated