Print(addressBook);
}
public static void main(String[] args) throws IOException {
ProtocDemo demo=new ProtocDemo();
demo.serialize();
System.out.println("serialize to disk success!!");
System.out.println("start deserialize......");
demo.deserialize();
}
}
右键,运行就能看到效果了!