Guest User

Untitled

a guest
Jun 24th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. import javax.microedition.lcdui.*;
  2. import javax.microedition.midlet.*;
  3.  
  4. public class HelloWorld extends MIDlet {
  5. private Form form;
  6. private Display display;
  7.  
  8. public HelloWorld() {
  9. super();
  10. }
  11.  
  12. public void startApp() {
  13. form = new Form("Hello World");
  14. String msg = "Hello World!!!!!!!";
  15. form.append(msg);
  16. display = Display.getDisplay(this);
  17. display.setCurrent(form);
  18. }
  19.  
  20. public void pauseApp(){}
  21.  
  22. public void destroyApp(boolean unconditional){
  23. notifyDestroyed();
  24. }
  25. }
Add Comment
Please, Sign In to add comment