Cake holders
Now you’ve learned how to bake some delicious Cake objects (hop over here if you’ve forgotten!), we need something to put them in. Step forward arrays. Arrays are a special sort of list – they have slots in them, like an old-fashioned milk bottle holder, that you can place things into. The restriction is that you have to tell Processing when you create your list both how big you want it to be, and what sorts of thing you want to put into it. Afterwards, your array can only hold a maximum of that number of those particular objects. For … More