import java.io.*;

public class ReadEmployee {
   public static void main(String argv[]) throws Exception{
      //deserialize objects emily and john
      FileInputStream fis = new FileInputStream("db");
      ObjectInputStream ois = new ObjectInputStream(fis);
      Employee emily = (Employee) ois.readObject();
      Employee john = (Employee) ois.readObject();
      // print the records after reconstruction of state
      emily.print();
      john.print();
      ois.close();
      fis.close();
   }
}
