就没人能解决这个程序?为什么在浏览器显示不出来?
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
public class ListPrime extends Applet
{
Label prompt;
TextField L_input,U_input;
int LowerLimit,UpperLimit;
public void init()
{
prompt=new Label( "Enter the lower and upper limit: ");
L_input=new TextField(4);
U_input=new TextField(4);
add(prompt);
add(L_input);
add(U_input);
}
public void paint(Graphics g)
{
int i,j,k=0,p=0;
FirstLoop:
for(i=LowerLimit;i <=UpperLimit;i++)
{
if(i%2==0)
continue FirstLoop;
j=3;
while(j <=Math.sqrt(i))
{
if(i%j==0)
continue FirstLoop;
j+=2;
}
g.drawString(Integer.toString(i),20+k*20,50+p*20);
if(k> 10)
{
p++;k=0;
}
else k++;
}
}
void actionPerformed(Event e)
{
int temp;