我是一个新的java程序员。我正在尝试在 Eclipse 中执行此程序,但错误是
The serializable class LoveJava does not declare a static final serialVersionUID field of type long.
private static final long serialVersionUID = 1L;
为什么我必须声明这条线?
import acm.graphics.*;
import acm.program.*;
public class LoveJava extends GraphicsProgram {
private static final long serialVersionUID = 1L;
public void run(){
add(new GLabel("I love Java"),100,75);
}
}