ELI5: what is an array
// explanation
What is an array?
An array is like a special box that holds a bunch of items all in a row [1]. Think of it like a toy shelf where each spot holds one toy, and you can pick out any toy you want by knowing which spot it's in [1][3].
Why do we use arrays?
Arrays help us organize things so we can find them easily [1]. Instead of having one big messy pile, you put similar items in order, like arranging books on a shelf [3].
How do you use an array?
Each item in the array has a spot number (called an index), so if you want the third toy, you just ask for spot 3 [1][3]. You can put in as many items as you wantโeven just one item or a million items [3].
What can go in an array?
Arrays can hold different types of things like numbers, words, or even more complicated collections [4][5]. But usually, each array holds items that are all the same type, like all numbers or all words [5].
// sources
Feb 20, 2024 ... An array is like a box, but a special box that holds a set of different "items" (information). You can use the box to pick out and use certainย ...
Oct 9, 2012 ... The direct superclass of an array type is Object. Every array type implements the interfaces Cloneable and java.io.Serializable.
Mar 4, 2022 ... An array is a list of values. It could contain zero values, one value, a million values. It's like a spice rack. A string is a value.
Sep 17, 2022 ... A collection is an array of objects. Objects are composed of Key/Value pairs. A Value can have a piece of text, date, number, binary data, an array or anย ...
Jul 15, 2022 ... There are lists for holding more than one item of the same type. That type can be basic type or a complex type like a structure or an entity or a record.
Video by The Coding Train

Video by Doodles and Digits | Educational Math Videos

Video by Neso Academy
