Answer:
Lets say you have array of Person object and you are getting an it from LoadPersons() method of your object like this
Person[] myPersonArray = myPerson.LoadPersons();
Now, if you want to convert above array into an ArrayList just write like this
ArrayList myPersonList = ArrayList.Adapter(myPersonArray );
Asked In: Many Interviews |
Alert Moderator