Hi there, again.
I am trying to execute the following
/*
* This program creates an
applet * which displays text.
*/
import java.applet.*;
import java.awt.*;
public class MyFirstApplet extends Applet
{
public void paint (Graphics graphic)
{
graphic.drawString("Boo u twat", 5,5);
graphic.drawRect(3,3, 100, 20);
}//paint method
}//class
However, i am getting the following message
Exception in
thread "main" java.lang.NoSuchMethodError: main
Why is this and how can i fix this???
Begginer here, so understand
Thanks