Looking for an inspiration? Below you will find public programs submitted by other users.

Filter by: All Bash C C# C++ 4.8.1 C++11 Haskell Java Java7 Objective-C Pascal (fpc) Pascal (gpc) Perl PHP Python Python 3 Ruby SQL VB.NET Ada Assembler Assembler AWK (gawk) AWK (mawk) bc Brainf**k C++ 4.3.2 C99 strict CLIPS Clojure COBOL COBOL 85 Common Lisp (clisp) D (dmd) Erlang F# Factor Falcon Forth Fortran Go Groovy Icon Intercal JavaScript (rhino) JavaScript (spidermonkey) Lua Nemerle Nice Nimrod Node.js Ocaml Octave Oz PARI/GP Perl 6 Pike Prolog (gnu) Prolog (swi) R Scala Scheme (guile) Smalltalk Tcl Text Unlambda Whitespace

#Jqw0NY Java7 19 hours ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#6zbg0W Java7 20 hours ago
Compilation error
  1. import java.applet.Applet;
  2. import java.awt.color;
  3.  
  4. import java.awt.Graphics;
  5. import java.awt.Rectangle;
  6. public class Bouncingcircle extedns Applet implements Runnable
  7. {
  8. int x=150,y=50,r=10;
  9. int dx=11,dy=7;
#H2McAA Java7 21 hours ago
Success
  1. class LovePureImpure {
  2. static {
  3. System.out . println ( "Love is neither pure nor impure" );
  4. }
  5. public LovePureImpure() {
  6. System.out . println ( "Love is purely impure and impurely pure" );
  7. }
  8. public static void main( String[]
  9. args) {
#ky9xFo Java7 21 hours ago
Compilation error
  1. class LovePureImpure {
  2. static {
  3. System.out . println ( "Love is neither pure nor impure" );
  4. }
  5. public LovePureImpure() {
  6. System.out . println ( "Love is purely impure and impurely pure" );
  7. }
  8. public static void main( String[]
  9. args) {
#Ri9nNs Java7 21 hours ago
Compilation error
  1. class LovePureImpure {
  2. static {
  3. System.out . println ( "Love is
  4. neither pure nor impure" );
  5. }
  6. public LovePureImpure() {
  7. System.out . println ( "Love is
  8. purely impure and impurely pure" );
  9. }
#ct8RLT Java7 21 hours ago
Compilation error
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#mAjEng Java7 21 hours ago
Compilation error
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#rirUwW Java7 21 hours ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#Lvbjb6 Java7 22 hours ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.io.*;
  4.  
  5. /* Name of the class has to be "Main" only if the class is public. */
  6. class Ideone
  7. {
  8. public static void main (String[] args) throws java.lang.Exception
  9. {
#LpYcvC Java7 22 hours ago
Compilation error
  1. % ------------------------------------------------------------------------------
  2. % Autor: Ariana Barrera - Diana Gutièrrez
  3. % Fecha: 01/05/2011
  4. % Proyecto Final de Aplicaciòn
  5. % Inteligencia Artificial
  6. % Universidad Rafael Landìvar, Guatemala
  7. % ------------------------------------------------------------------------------
  8.  
  9. % mover(canibal, misionero)
#Bi8SzX Java7 22 hours ago
Compilation error
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#DwI44l Java7 23 hours ago
Compilation error
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#tXUM8j Java7 1 day ago
Success
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. public class Main
  6. {
  7. public static void main (String[] args){
  8.  
  9. Scanner in = new Scanner(System.in);
#hPDLP9 Java7 1 day ago
Success
  1. /*
  2. * 본 코드는 생활코딩 Java 수업을 위해서 만들어진 코드입니다.
  3. * http://opentutorials.org/module/516
  4. * 누구든지 이 코드를 이용해서 원하는데로 사용할 수 있습니다. (public domain)
  5. * 본 코드는 아래 수업에서 활용되고 있습니다.
  6. * 실제 수업의 내용과 ideone.com의 코드는 다를 수 있습니다.
  7. * ideone.com 플랫폼의 특성 때문입니다.
  8. */
  9.  
#F7m832 Java7 1 day ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#LDleq8 Java7 16 hours ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.io.File;
  4. import java.io.FileInputStream;
  5. import java.io.FileNotFoundException;
  6. import java.io.IOException;
  7. import java.math.BigInteger;
  8. import java.net.*;
  9. import java.util.*;
#hDFZr9 Java7 1 day ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import javax.swing.*;
  6. import java.io.*;
  7.  
  8. /* Name of the class has to be "Main" only if the class is public. */
  9. class Ideone
#EsrDAD Java7 1 day ago
Success
  1. class Ideone
  2. {
  3. private static boolean isDigits(String t, int length) {
  4. int l = t.length();
  5. if (l != length) return false;
  6. for (int i = 0; i < l; i++) {
  7. char tmp = t.charAt(i);
  8. if (tmp < '0' || tmp > '9') return false;
  9. }
#pjdxz8 Java7 1 day ago
Success
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. for (int i = 1; i < 100; i++)
#zZf5GZ Java7 1 day ago
Runtime error
  1. class Ideone
  2. {
  3. private static boolean validDate(String date) {
  4.  
  5. String[] parts = date.split("-");
  6. if (parts.length != 3) return false;
  7.  
  8. if (parts[0].length() != 2) return false;
  9. int day = Integer.parseInt(parts[0]);
#omhNXX Java7 1 day ago
Success
  1. import java.io.*;
  2. import java.util.*;
  3. import java.math.*;
  4. import java.util.*;
  5.  
  6. class Main {
  7.  
  8. public static void main(String[] args) throws Exception {
#n4Ncli Java7 1 day ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#koZWi8 Java7 1 day ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6. import java.math.BigInteger;
  7.  
  8. /* Name of the class has to be "Main" only if the class is public. */
  9. class Ideone
#GD5OZV Java7 1 day ago
Compilation error
  1. // LA4058
  2. #include <stdio.h>
  3. #include <functional>
  4. #include <bitset>
  5. #include <math.h>
  6. #include <time.h>
  7. #include <stdlib.h>
  8. #include <algorithm>
  9. #include <iostream>
#Jr7TOY Java7 1 day ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6. import java.math.*;
  7.  
  8. /* Name of the class has to be "Main" only if the class is public. */
  9. class Ideone
#suhbGX Java7 1 day ago
Success
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Main
  6. {
  7. public static int fibo(int n) {
  8. if (n <= 2) return n;
  9. else return fibo(n - 1) + fibo(n - 2);
#xAM8pm Java7 1 day ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#9mk7Qa Java7 1 day ago
Runtime error
  1. import java.util.Random;
  2.  
  3. class Main {
  4. public static void main(String[] args) {
  5. int[] input = new int[20000];
  6. for (int i = 0; i < 20000; i++) {
  7. input[i] = 17;
  8. }
  9. quick(input);
#7P5Tj6 Java7 1 day ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#ygDdTu Java7 1 day ago
Compilation error
  1. import java.applet.*;
  2. import java.awt.*;
  3.  
  4. public class fillColor extends Applet{
  5. public void paint(Graphics g){
  6. g.drawRect(300,150,200,100);
  7. g.setColor(Color.yellow);
  8. g.fillRect( 300,150, 200, 100 );
  9. g.setColor(Color.magenta);