Employee[] staff = new Employee[2]; staff.add(new Employee(...)); staff.add(new Employee(...));
ObjectOutputStream out = new ObjectOutputStream( new FileOutputStream("staff.dat"));
out.writeObject(staff); out.close();