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

Filter by: All Bash C C# C++ 5.1 C++14 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 C++ C++ 4.3.2 C99 strict CLIPS Clojure COBOL COBOL 85 CoffeeScript Common Lisp (clisp) D D D (dmd) Elixir Erlang F# Factor Falcon Fantom Forth Fortran Go Groovy Icon Intercal JavaScript (rhino) JavaScript (spidermonkey) Lua Nemerle Nice Nim Node.js Objective-C Ocaml Octave Oz Perl 6 PicoLisp Pike Prolog (gnu) Prolog (swi) Python (Pypy) R Rust Scala Scheme (chicken) Scheme (guile) Smalltalk Tcl Text Unlambda Whitespace

#P8RJB2 Java7 1 day ago
Compilation error
  1. import java.util.*;
  2. import java.io.*;
  3.  
  4. public class OnlineCommunity2
  5. {
  6.  
  7.  
  8.  
  9. public Object[] lout;
#ISzix4 Java7 1 day ago
Compilation error
  1. import java.io.*;
  2. import java.util.*;
  3. import java.lang.*;
  4. import java.text.*;
  5.  
  6.  
  7. public class MazeSolve1
  8. {
  9. public static void main(String[] args)
#0RNo4G Java7 1 day ago
Success
  1. /*
  2. * 본 코드는 생활코딩 Java 수업을 위해서 만들어진 코드입니다.
  3. * http://o...content-available-to-author-only...s.org/module/516
  4. * 누구든지 이 코드를 이용해서 원하는데로 사용할 수 있습니다. (public domain)
  5. * 본 코드는 아래 수업에서 활용되고 있습니다.
  6. * 실제 수업의 내용과 ideone.com의 코드는 다를 수 있습니다.
  7. * ideone.com 플랫폼의 특성 때문입니다.
  8. */
  9.  
#SA4RjC Java7 1 day ago
Success
  1. import java.util.*;
  2. class Ascii
  3. {
  4. public static void main(String arg[])
  5. {
  6. Scanner s=new Scanner(System.in);
  7. String str=s.nextLine();
  8. int x=0;
  9. char[] c=str.toCharArray();
#eMFz51 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. {
#54k95d Java7 1 day 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. {
#6mpmOK Java7 1 day ago
Runtime error
  1.  
  2.  
  3.  
  4. import java.io.*;
  5. import java.util.*;
  6.  
  7.  
  8.  
  9. public class Main {
#i4BQeD Java7 1 day ago
Success
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5.  
  6. class Ideone
  7. {
  8. public static void main (String[] args)
  9. { int flag=0;
#J6h2Oz Java7 1 day ago
Runtime error
  1. import java.io.*;
  2. import java.util.*;
  3.  
  4.  
  5.  
  6. public class Main {
  7.  
  8.  
  9. public static void main(String[] args)throws IOException {
#GkwLoW 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. {
#5ULpcO 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. {
#1jueYr Java7 1 day ago
Success
  1. import java.text.SimpleDateFormat;
  2. import java.util.Date;
  3. import java.util.TimeZone;
  4.  
  5. public class Main {
  6. public static void main(String[] argv) throws Exception {
  7. SimpleDateFormat df = new SimpleDateFormat("dd MMM yyyy HH:mm:ss");
  8. String asGmt = df.format(new Date()) + " GMT";
  9. //System.out.println(asGmt);
#HneOGu 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. {
#QDlBxI Java7 1 day 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. {
#jXcMli 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. {
#gR2MPN Java7 1 day ago
Compilation error
  1. import java.awt.Graphics;
  2.  
  3. class Ideone extended java.Applet.applet
  4. {
  5. public void paint(Graphics g){
  6. int x = 10;
  7. int y=50;
  8. g.drawRect(50,50,x,y);
  9.  
#HPh1Ld Java7 1 day ago
Success
  1.  
  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. {
#S3bovp Java7 1 day ago
Compilation error
  1. public class Fabric extends Thread {
  2.  
  3.  
  4.  
  5. public static void main(String[] args) {
  6.  
  7. Thread t = new Thread(new Fabric());
  8.  
  9. Thread t2 = new Thread(new Fabric());
#5xCcgo Java7 1 day ago
Compilation error
  1. public class Fabric extends Thread {
  2.  
  3. public static void run() {
  4.  
  5. for(int i = 0; i < 2; i++)
  6.  
  7. System.out.print(Thread.currentTread().getName() + " ");
  8.  
  9. }
#90vkhP Java7 1 day ago
Compilation error
  1. public class Fabric extends Thread {
  2.  
  3. public static void main(String[] args) {
  4.  
  5. Thread t = new Thread(new Fabric());
  6.  
  7. Thread t2 = new Thread(new Fabric());
  8.  
  9. t.start();
#IIAwSO Java7 1 day ago
Compilation error
  1. public class Fabric extends Thread {
  2.  
  3. public static void main(String[] args) {
  4.  
  5. Thread t = new Thread(new Fabric());
  6.  
  7. Thread t2 = new Thread(new Fabric());
  8.  
  9. t.start();
#wWW3q0 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. {
#QYFLb0 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. {
#Zrl6MD Java7 1 day 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. {
#IVWsIY 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. {
#oFx6NZ Java7 1 day ago
Compilation error
  1. class Test {
  2. int i;
  3. }
  4. class Main {
  5. public static void main(String args[]) {
  6. Test t;
  7. System.out.println(t.i);
  8. }
#q0cr8U Java7 1 day 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 Greeting
  9. {
#7K4ZDb 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.  
  8. class Parcel1 {
  9.  
#tfdaoc 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. {
#4BhkXw 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. {