Arrays And Lists
Two-dimensional Arrays
There are 2 types of multi-dimensional arrays: rectangular and jagged.
To create a rectangular multi-dimensional array, add the row and column values in your array initialization.
To create a jagged multi-dimensional array, define the sub-arrays after initiazliation.
Lists
Lists have a dynamic size. You use them when you don't know how many items you'll be storing ahead of time.
Pro tip: 99% of the time, you will be using lists and not arrays.
Last updated