正在加载图片...
最病 A Java Object Serialization --Example 9 a Writing to an object stream l/ Serialize today's date to a file FileOutputStream f new FileOutput Stream(tmp") Objectoutput s= new ObjectoutputStream(t) s writeobject( Today) s writeobject(new DateD) S flush Institute of Computer Software 2021/1/28 Nanjing UniversityJava Object Serialization -- Example  Writing to an object stream 2021/1/28 Institute of Computer Software Nanjing University 9 // Serialize today's date to a file. FileOutputStream f = new FileOutputStream("tmp"); ObjectOutput s = new ObjectOutputStream(f); s.writeObject("Today"); s.writeObject(new Date()); s.flush();
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有