Advertisement
nerdemma

Hello Word Java J2ME

Jul 28th, 2023
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. import javax.microedition.lcdui.*;
  2. import javax.microedition.midlet.*;
  3.  
  4. public class HelloWorld extends MIDlet{
  5.  
  6.     private Form form;
  7.     private Display display;
  8.  
  9. public HelloWorld(){
  10. super();
  11. }
  12.  
  13. public void startApp(){
  14. form = new Form("Hello World");
  15. String msg ="Hello, Emma This is BB CV 8520";
  16. from.append(msg);
  17. display=Display.getDisplay(this);
  18. display.setCurrent(form);
  19. }
  20.  
  21. public void pauseApp(){}
  22.  
  23.  
  24. public void destroyApp(boolean unconditional)
  25. {
  26. notifyDestroyed();
  27. }
  28. }
Tags: Java J2ME
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement