import java.io.ObjectInputStream;
import java.io.FileInputStream;
public class PVReader{
public static void main(String [] args)
throws java.io.IOException,
java.lang.ClassNotFoundException{
ObjectInputStream in =
new ObjectInputStream(
new FileInputStream("people.dat"));
PeopleVec PV= (PeopleVec)in.readObject();
for (int i=0; i<PV.size(); i++){
Person somebody=PV.getPerson(i);
System.out.println(somebody);
}
}
}