import java.util.*;
public class Test {
public static void main(String[] args) throws Exception {
HashMap
map.put(1, new Film("sdfa",1,2,3));
ObjectOutputStream objectOutputStream = new ObjectOutputStream(new FileOutputStream("E:/1.txt"));
objectOutputStream.writeObject(map);
objectOutputStream.close();
System.out.println("successful");
}
}