public class ObjectIuputStreamDemo {
public static void main(String[] args) {
try(
ObjectInputStream oit = new ObjectInputStream(new FileInputStream(“F:\JAVA\person.txt”));
){
List list= (List)oit.readObject();
for(Person p : list) {
System.out.println(p);
}
Map
Object流之二 --反序列化
最新推荐文章于 2022-09-23 21:35:06 发布