This tutorial is geared toward java, but it applys to many programming languages.Arrays let you hold multiple objects. Say you want to hold a bunch of numbers, instead of having a bunch of scattered int objects, you can use an array and hold it all in an organized fashion.Arrays only let you hold one specific type of object, so you can't hold integers and Strings in one array. Also, arrays let you only hold a set limit of objects, so if you make the array have ten spots, you can only hold a max of ten objects and can never make more space. Of course you don't have to necessarily hold a object in an array spot.
|