# 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.

```java
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](https://www.ask-codey.com/glossary?category=java&level=2)

Updated: October 26, 2026

## In other subjects

- [Array in C#](https://www.ask-codey.com/glossary/array-c-sharp)
- [Array in Data Structures](https://www.ask-codey.com/glossary/array-data-structures)
- [Array in JavaScript](https://www.ask-codey.com/glossary/array-javascript-2)
- [Array in PowerShell](https://www.ask-codey.com/glossary/array-powershell)
- [Array in Unix](https://www.ask-codey.com/glossary/array-unix)

Source: https://www.ask-codey.com/glossary/array
