code: public static void doObjToFile(String file, Object[] objs) {
  		ObjectOutputStream oos = null;
  		try {
  			FileOutputStream fos = new FileOutputStream(file);
  			oos = new ObjectOutputStream(fos);
  			for (int i = 0; i < objs.length; i++) {
  				oos.writeObject(objs[i]);
  			}
  		} catch (Exception e) {
  			e.printStackTrace();
  		} finally {
  			try {
  				oos.close();
  			} catch (IOException e) {
  				e.printStackTrace();
  			}
  		}
  	}
docs: 将指定的对象写入指定的文件
  
  @param file
  指定写入的文件
  @param objs
  要写入的对象