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包中的類(lèi)?
import java.applet.*; ?//引入java.applet包中的類(lèi)
public class HelloWorld extends Applet //這里有小錯(cuò)誤。不知道什么意思怎么改?
{?
public void paint(Graphics g )?
{ ? ? ? ? ? ? ? ? ? ?
g.drawString("Hello World!",5,35);
} ? ? ? ? ? ? ? ?
}
2015-01-23
把你的整體代碼貼一下可以嗎?從錯(cuò)誤上來(lái)看是類(lèi)不存在或者是轉(zhuǎn)型的時(shí)候出的錯(cuò)誤