dimanche 8 octobre 2017

Reflecting objects from a Multidiminsonal array java

Im trying to access objects from within a 2d-array using Reflection. I can grab the object holding the array such as Matrix[][] drawMatrix = getDrawMatrix(); using reflection.

Although I cannot scroll thru each object to get the information from it, such as drawMatrix[2][4].getID();

How can this be done? Thank you very much for your time and effort!





Aucun commentaire:

Enregistrer un commentaire