Could someone explain this for me? Thanks in advance.
import java.applet.Applet;
import java.awt.*;
public class Sample extends Applet{
private
String text = "Hello World";
public void init () {
add(new Label(text));
}
public Sample(String string) {
text = string;
}
}
The HTML page:
< html>
< title>SampleApplet< /title>
< body>
<
applet code ="Sample.class" width=200 height=100>< /applet>
< /body>
< /html>
Answer is "Generates a running error"
[This message has been edited by Jim Yingst (edited July 28, 2000).]