fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6. import java.applet.Applet;
  7. import java.awt.Graphics;
  8.  
  9. /* Name of the class has to be "Main" only if the class is public. */
  10. class Ideone extends Applet
  11. {
  12. public void paint(Graphics g){
  13. g.drawString("Welcome", 150, 150);
  14. }
  15. public static void main(String[] args){
  16. System.out.println("Hello world");
  17. }
  18. }
Success #stdin #stdout 0.18s 62412KB
stdin
Standard input is empty
stdout
Hello world