Introduction to Arrays

Learn how to create, access, and maintain a list of data.

Introduction

An array is an ordered list of items. The items may be of any type. You know, in most post offices, there are hundreds or thousands of post boxes. Each post box may or may not contain something. Each post box has a numeric handle. Post box 25 maybe your box. You unlock it, grab its handle, and access its contents.

The trick is that in the case of arrays, you have to imagine the post boxes with keys 0, 1, 2, and so on. Typically, arrays have continuous keys.

Get hands-on with 1200+ tech skills courses.