If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

now somewhere between the dashed lines, all of my values in my array of objects become one and the same, and whether by coincience or logic problems they all are the last bit of info retrived from the file.

im not sure what it is im doing wrong but if anyone could help me with arrays of objects that would be much appreciated. Thx

With this line you are setting every element in students 4 to point to student1. There is only one student1, whos values you keep changing, but which is pointed to by all elements of the student4 array.

Each element of student4 should point to a different student object. One way to do this is create a new student object for each pass through your readLine() loop.

Remember, an array is a collection of object references. You can make them all point to the same object if you wish, but it's more useful here if they each point to a different student object.