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

#o81xAb 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. {
#MejSxL Java7 1 day ago
Success
  1. import java.io.*;
  2. import java.util.*;
  3.  
  4. class p171b
  5. {
  6. public static void main(String[] args)
  7. {
  8. Scanner sc = new Scanner(System.in);
  9. long a = sc.nextLong();
#LG9DxY Java7 2 days 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. {
#aC9KnK Java7 2 days ago
Compilation error
  1. interface Rideable {
  2. String getGait();
  3. }
  4.  
  5. public class Camel implements Rideable {
  6. int weight = 2;
  7.  
  8. public static void main(String[] args) {
  9. new Camel().go(8);
#c9o2u9 Java7 2 days 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. {
#lTonw8 Java7 2 days 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. {
#bfD5at Java7 2 days 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. {
#tLE8ei Java7 2 days 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. {
#ccN3xt Java7 2 days ago
Success
  1. import java.io.*;
  2. import java.util.*;
  3.  
  4. class p122a
  5. {
  6. public static void main(String[] args)
  7. {
  8. Scanner sc = new Scanner(System.in);
  9. int arr[] = {4,7,44,47,74,77,444,447,474,477,744,747,774,777};
#6OTBku Java7 2 days 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. {
#Af59mT Java7 2 days ago
Runtime 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. {
#FqjfxE Java7 2 days ago
Runtime 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. {
#j3aDul Java7 2 days 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. {
#4IMAVF Java7 2 days ago
Success
  1. import java.io.BufferedWriter; import java.io.OutputStreamWriter;
  2.  
  3. class ClassTest { public static void main(String args[] ) throws Exception { try{ int T=0 ,read; BufferedWriter out = new BufferedWriter(new OutputStreamWriter(System.out));
  4.  
  5. // No of Test Cases
  6. while((read = System.in.read()) != '\n' )
  7. { if( read != '\r' ) T = T*10 + read -48 ; }
  8.  
#JGqucN Java7 2 days ago
Runtime error
  1.  
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. class Test{
  8. public static void main(String args[]){
  9. // オブジェクト作成
#lraudy Java7 2 days ago
Compilation error
  1.  
  2. import java.io.*;
  3. import java.util.*;
  4.  
  5. class Test{
  6. public static void main(String args[]){
  7. // 標準のコンストラクタでは、現在の日時が設定される。
  8. printCalendar(cal);
#u8X5sm Java7 2 days ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6. class Program
  7. {
  8. public static void FunF(A o)
  9. { o.F(); }
#ii3uFT Java7 2 days 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. public class HelloWorld {
  9. public static void main(String[] args) {
#QqZyZ5 Java7 2 days 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. public class Ideone
  9. {
#ySaEK5 Java7 2 days 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 Main
  9. {
#ssW0Dq Java7 2 days 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. {
#7q2lKe Java7 2 days ago
Success
  1.  
  2. import java.io.*;
  3. import java.util.*;
  4.  
  5. class Test{
  6. public static void main(String args[]){
  7. // equalsメソッドと==演算子の違い
  8. // ==演算子はインスタンスが同じものかどうかを調べ、その内容を調べない。
  9. // equalsメソッドは、インスタンスが違っても、内容が同じであればtrueを返す。
#m3UBYl Java7 2 days ago
Success
  1.  
  2. import java.io.*;
  3. import java.util.*;
  4.  
  5. class Test{
  6. public static void main(String args[]){
  7. Hashtable table = new Hashtable();
  8.  
  9. // 辞書追加
#qb067S Java7 2 days ago
Runtime error
  1.  
  2. import java.io.*;
  3. import java.util.*;
  4.  
  5. class Test{
  6. public static void main(String args[]){
  7. Hashtable table = new Hashtable();
  8.  
  9. // 辞書追加
#3Tlc0A Java7 2 days ago
Success
  1.  
  2. import java.io.*;
  3. import java.util.*;
  4.  
  5. class Test{
  6. public static void main(String args[]){
  7. Stack stack = new Stack();
  8.  
  9. // push
#4ALTIz Java7 2 days 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. class Program
  8. {
  9. public static void FunF(A o)
#mFjWnE Java7 2 days 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 Program
  9. {
#P2XCaU Java7 2 days 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 Program
  9. {
#oV6mc7 Java7 2 days ago
Compilation error
  1. public class Fuck
  2. {
  3. public String goAgain (String str, int index)
  4. {
  5. if (index >= str.length())
  6. return str;
  7.  
  8. return str + goAgain(str.substring(index), index + 1);
  9. }
#n3jSf9 Java7 2 days ago
Compilation error
  1. public class Fuck
  2. {
  3. public String goAgain (String str, int index)
  4. {
  5. if (index >= str.length())
  6. return str;
  7.  
  8. return str + goAgain(str.substring(index), index + 1);
  9. }