作者:liunian007 | 来源:互联网 | 2023-10-13 11:53
package circle;
import java.applet.Applet;
import java.awt.Graphics;
public class Circle extends Applet{
boolean isStandalOne=false;
String var0;
int var1;
public String getParameter(String key,String def) {
return isStandalone?System.getProperty(key,def):(getParameter(key)!=null?getParameter(key):def);
}
public Circle() {
}
public void init() {
try {
var0=this.getParameter("paeam0","");
}
catch(Exception e) {e.printStackTrace();}
try {var1=Integer.parseInt(this.getParameter("param1",""));}
catch(Exception e) {e.printStackTrace();}
try {sampleInit();}
catch(Exception e) {
e.printStackTrace();
}
}
private void sampleInit() throws Exception{}
public void start() {}
public void stop() {}
public void destory() {}
public void paint(Graphics g) {}
public String getAppletInfo() {return"Applet Information";}
public String[][] pinfo= {
{"param0","String",""},
{"param1","int",""},
};
return pinfo;
}
这个return,不知道为什么报错
这个return我接收一下
小问题