>From what I understand you have a 2D String array and want to use the
values in this array to initialize new instances of the Student class.
The simplest is an Student array:
int len = myStudnts.length;
Student[] testStudents = new Student[len];
for(int i=0; i<len; i++)
{
// change Student constructor to accept a String array as parameter
testStudents[i] = new Student(myStudents[i]);
}
Access individual Student instances later using array indexes:
testStudents[2].goToSchool();
--
Eduardo Omine
http://blog.omine.net/
http://www.omine.net/
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders