买了个moto e680i智能手机,linux系统,支持java。于是打算写个程序玩玩。用的是eclipse me,jdk1.42,很简单的一个程序。代码很简单,经典的helloworld程序。
import javax.microedition.midlet.midlet;
import javax.microedition.midlet.midletstatechangeexception;
import javax.microedition.lcdui.*;
public class hello extends midlet {
public hello() {
super();
// todo auto-generated constructor stub
form form=new form("hello moto!");
form.append("hello to moto's world!");
display.getdisplay(this).setcurrent(form);
}
protected void startapp() throws midletstatechangeexception {
// todo auto-generated method stub
}
protected void pauseapp() {
// todo auto-generated method stub
}
protected void destroyapp(boolean arg0) throws midletstatechangeexception {
// todo auto-generated method stub
}
}
闽公网安备 35060202000074号