|
2D array
I have a two dimensional array where each row of the array holds string values that represent attributes of an object. I'm trying to figure out how to iterate over each row setting each element in a row equal to a corresponding object's instance variables.
So I want to Instaniate an object, set that objects instance variables equal to the corresponding values in a row of my 2d array - (then either do something with the object or store it in a data structure for later use) and repeat. Either way, I"m getting stumped at how to iterate appropriately over each row and set an object's instance variables accordingly.
Thanks for the help as always!
|