Introduction

Array is an ordered, random-access collection type.

Arrays are one of the most commonly used data types in an app. We use the Array type to hold elements of a single type, the array’s Element type. An array can store any kind of elements—from integers to strings to classes.

Syntax

Remarks

Arrays are an ordered collection of values. Values may repeat but must be of the same type.