请java大人帮忙!!!!
初学java 写的程序出了看不懂的错误,请那位大人帮忙看看,是不是jdk没有配置好啊
程序:
import java.awt.*;
import java.applet.Applet;
piblic class Addition extends Applet{
Label prompt;
TextField input;
int number;
int sum;
public void init()
{
prompt=ne Label("Enter integer and press Enter:");
input=new TextField(10);
add(prompt);
add(input);
sum=0;
}
public boolean action(Event e,vobject o)
{
number=Integer.parseInt(o.toString());
input.setText("");
sum=sum+number;
showStatus(Integer.toString(sum));
return true;
}
}
编译错误::
addition.java:3: 'class' or 'interface' expected
piblic class Addition extends Applet{
^
addition.java:10: ';' expected
prompt=ne Label("Enter integer and press Enter:");
^
addition.java:16: cannot resolve symbol
symbol : class vobject
location: class Addition
public boolean action(Event e,vobject o)
^
addition.java:10: cannot resolve symbol
symbol : variable ne
location: class Addition
prompt=ne Label("Enter integer and press Enter:");
^
Note: addition.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.