📄 readperson.java
字号:
import java.io.*;
public class ReadPerson
{
public static void main(String[] args)
{
Person p = null;
try
{
FileInputStream fis = new FileInputStream("SelfPerson.tmp");
ObjectInputStream ois = new ObjectInputStream(fis);
p = (Person)ois.readObject();
System.out.println(p);
ois.close();
}
catch(Exception e)
{
System.out.println(e);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -