
LESSON CONTENT
An array is a data structure that stores multiple values in a single variable. Each value is stored at a numbered position called an index.
Arrays are useful when you need fast access to items by position, and they keep related data grouped neatly in memory.
int numbers[] = {10, 20, 30, 40};
System.out.println(numbers[2]); // Output: 30