sunxiaoming
发贴: 21
积分: 0
|
于 2006-09-02 08:07
哦!! 不好意思 上面的一行代码有点错误 ,我贴上的是 修改以前的 System.out.println("id" + stu1.id); System.out.println("name" + stu1.name); System.out.println("age" + stu1.age); ********************************************************** 这次找到Serialization.java 了可是又有了错误! D:\学习环境\bin>javac Serialization.java Serialization.java:28: cannot resolve symbol symbol : class FileIntputStream location: class Serialization FileIntputStream fis = new FileIntputStream(); ^ Serialization.java:28: cannot resolve symbol symbol : class FileIntputStream location: class Serialization FileIntputStream fis = new FileIntputStream(); ^ Serialization.java:29: cannot resolve symbol symbol : class ObjectIntputStream location: class Serialization ObjectIntputStream ois = new ObjectOutputStream(fis); ^ 3 errors 类似这样的错误是因为 没有引入import java .io么? 我上面的程序已经 引入了啊! 您能介绍一本关于 产生编译错误的书么? 我在调程序的时候有很多错误不知道是怎么产生的!!!
|