标签:object cto pre tput 就是 sock 垃圾 信息 int
FileOutputStream fos = new FileOutputStream("c:\\test.txt"); ObjectOutputStream oos = new ObjectOutputStream(fos); MyObject myObj = new MyObject(); myObj.str1 = "test1"; myObj.str2 = "test2"; for (int i = 0; i < 5; i++) { oos.writeObject(myObj); } fos.close();
标签:object cto pre tput 就是 sock 垃圾 信息 int
原文地址:https://www.cnblogs.com/handongdong/p/9994256.html