Array
noun
say it: “uh-RAY” /əˈreɪ/
A fixed-size list of values of the same type, kept in order and reached by their position number.
What is Array in Java?
Array — A fixed-size, indexed collection whose elements all have the same type.
class Route {
String[] stops = {"Oak", "Pine", "Lake"};
String secondStop = stops[1];
int stopCount = stops.length;
}
In a sentence
- “I kept the seven daily temperatures in an array and looped over it to find the highest.”
Level: Apprentice · More Java terms at this level
Updated