为了账号安全,请及时绑定邮箱和手机立即绑定

Multiple markers at this line - The serializable class HelloWorld does not declare a static final serialVersionUID field of type long - The public type HelloWorld must be defined in its own file - The type HelloWorld is already defined

import java.awt.*;     //引入java.awt包中的类 

import java.applet.*;  //引入java.applet包中的类


public class HelloWorld extends Applet //这里有小错误。不知道什么意思怎么改?



public void paint(Graphics g ) 


{                    


g.drawString("Hello World!",5,35);


}                


}


正在回答

1 回答

把你的整体代码贴一下可以吗?从错误上来看是类不存在或者是转型的时候出的错误

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

Multiple markers at this line - The serializable class HelloWorld does not declare a static final serialVersionUID field of type long - The public type HelloWorld must be defined in its own file - The type HelloWorld is already defined

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信