?? objectserializationexample1.java
字號:
import java.io.*;
public class ObjectSerializationExample1
{
public static void main(String argv[])
{
int c = Integer.parseInt(argv[1]);
int e = Integer.parseInt(argv[2]);
int m = Integer.parseInt(argv[3]);
Student st = new Student(argv[0], c, e, m);
st.printData();
try {
FileOutputStream fout = new FileOutputStream("Data.txt");
ObjectOutputStream objOut = new ObjectOutputStream(fout);
objOut.writeObject(st);
objOut.close();
fout.close();
}
catch (IOException ie)
{
System.err.println(e);
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -