Collections and Arrays
摘要
Arrays are fundamental data structures used to store and organize collections of related elements. An array is an ordered collection of elements, where each element has a unique index. Arrays can store values of any type, but all elements within a single array must be of the same type. You can create arrays to hold integers, strings, booleans, or even custom types.