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

#a3qmwI Java7 1 day ago
Success
  1. import java.util.*;
  2.  
  3. class Ideone {
  4.  
  5. public static void main(String[] args){
  6. char[] symbols = {'T', 'T', 'F', 'T'};
  7. char[] operators = {'|', '&', '^'};
  8.  
  9. int n = symbols.length;
#S1i1W7 Java7 1 day ago
Runtime error
  1. public class Main {
  2. public static void main(String []args) {
  3. // Declare a variable and assign to "args[]".
  4. String name = args[0];
  5.  
  6. // Print variable "name".
  7. System.out.println("Hello " + name + "!");
  8. } // Method "main()".
  9. } // Class "Main"
#6kAVw2 Java7 1 day ago
Compilation error
  1. import java.io.BufferedReader;
  2. import java.io.IOException;
  3. import java.io.InputStreamReader;
  4. import java.util.LinkedList;
  5. import java.util.StringTokenizer;
  6.  
  7. public class FixingTypos {
  8.  
  9. public static void main(String[] args) throws IOException {
#of8fq9 Java7 1 day ago
Success
  1. import java.util.*;
  2.  
  3. class Ideone{
  4. public static void main(String[] args){
  5. int set[] = {3,5,4,6,1,7}; //{3,4,6}, {1,7,5}
  6. int n = set.length;
  7.  
  8. int totalSum = 0;
  9. for(int x:set) totalSum+=x;
#gyHe3I 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. {
#WFGuWm 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. {
#lrRts3 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. {
#prH3EK 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. {
#Mm6hEx 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. {
#lUsz5r 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. {
#83F5w4 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. {
#z7sJYF 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. {
#Qb0lee Java7 1 day ago
Success
  1. import java.util.*;
  2.  
  3. class Ideone{
  4. public static void main(String[] args){
  5. int set[] = {3,5,4,6,1,7}; //{3,4,6}, {1,7,5}
  6. int n = set.length;
  7.  
  8. int totalSum = 0;
  9. for(int x:set) totalSum+=x;
#sn6EVh 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. {
#2P2RIM Java7 1 day ago
Success
  1. import java.util.*;
  2.  
  3. class Ideone{
  4.  
  5. private static int INT_MAX = 100000;
  6.  
  7. public static void main(String[] args){
  8. int a[] = {1,7,4,11};
  9.  
#sx8okK Java7 1 day ago
Runtime error
  1.  
  2.  
  3. import java.io.*;
  4. import java.util.*;
  5.  
  6. class Prob {
  7.  
  8.  
  9. MyScanner sc = new MyScanner();
#Xn94js 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. {
#pDbViG 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. {
#pEv2FU 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. {
#I87Gqj 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. {
#is2c8X 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. {
#Wc3a6g 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. {
#hRXOnm 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. {
#CYccXU Java7 1 day ago
Compilation error
  1. public class Main {
  2. public static void main(String...args) {
  3. L:
  4. goto L;
  5. }
  6. }
#OGcW7j Java7 1 day ago
Compilation error
  1. public class test2 {
  2.  
  3. public static void main(String[] args) {
  4.  
  5. String input = "99#7";
  6. int number;
  7. try{
  8. number = Integer.parseInt(input);
  9. }
#SjisY0 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. {
#yMVJkF Java7 2 days ago
Compilation error
  1. import java.awt.Color;
  2. import javax.swing.JApplet;
  3. import java.awt.Graphics;
  4.  
  5.  
  6. public class applet extends JApplet{
  7.  
  8. @Override
  9. public void paint(Graphics g){
#f2nwnB 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. import java.text.*;
  7.  
  8.  
  9. class CabRecordReader {
#GuIDbu Java7 2 days ago
Success
  1. class HelloWorldApp {
  2. public static void main(String[] args) {
  3. System.out.println("Hello World!"); // Display the string.
  4. }
  5. }
#ZMiOur 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. {