please read the code followed
import java.applet.Applet;
import java.awt.*;
public class Sample extends
Applet {
private
String text="hello World";
public void init ()
{
add(new Label(
test));
}
public Sample(String str)
{
text=str;
}
}
when I appletviewer it ;
the out message is: Load Sample.class can't be instanced.
I cant find the quesion.
give me some comment about it.and If I want the code work.what
should i do?