title: Iterating through a 2D array with the second dimension having different lengths
body: <p>I have a 2D array in which takes user input to create the first dimension length then loops through and gets the 2nd dimension lengths. Ex: if the user enters 4 for the first dimension it will then loop through 4 times and get the second dimension lengths which could be 2, 3, 2 ,4. I'm not sure how i could effectively loop through this...</p>