62,614
社区成员
发帖
与我相关
我的任务
分享
import java.io.*;
public class Forest implements Serializable{
private Tree tree= new Tree();
public static void main(String[] args){
Forest f = new Forest();
try{
FileOutputStream fs = new FileOutputStream("Forest.ser");
ObjectOutputStream os = new ObjectOutputStream(fs);
os.writeObject(f);
os.close();
}catch(Exception e){}
}
}
class Tree{}