fork download
  1. import java.awt.*;
  2. import javax.swing.*;
  3. import java.awt.Graphics;
  4. public class Main extends JApplet {
  5. Color black = Color.black;
  6. Color blue = Color.blue;
  7. Color gray = Color.gray;
  8. Color red = Color.red;
  9. Color yellow = Color.yellow;
  10. Color orange = Color.orange;
  11. Color cyan = Color.cyan;
  12. Color green = Color.green;
  13. Color magenta = Color.magenta;
  14. Color white = Color.white;
  15. Color pink = Color.pink;
  16. public void paint(Graphics g){
  17. super.paint(g);
  18. g.fillRect(68, 90, 109, 203);
  19. g.drawString("BARK BARK BARK BARK", 14, 12);
  20. }
  21. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
spoj: The program compiled successfully, but main class was not found.
      Main class should contain method: public static void main (String[] args).
stdout
Standard output is empty