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

#JPQgU0 Java7 1 day ago
Runtime error
  1. public class Main {
  2. public static void main(String[] args) {
  3. long time = System.currentTimeMillis();
  4. firstPrimes(1000000);
  5. System.out.println(System.currentTimeMillis() - time);
  6. }
  7. public static int[] firstPrimes(int n) {
  8. int[] primes = new int[n];
  9. int found = 1;
#x9lMEL Java7 1 day ago
Runtime error
  1. public class Main {
  2. public static void main(String[] args) {
  3. long time = System.currentTimeMillis();
  4. firstPrimes(1000000);
  5. System.out.println(System.currentTimeMillis() - time);
  6. }
  7. public static int[] firstPrimes(int n) {
  8. int[] primes = new int[n];
  9. int found = 1;
#322UxB Java7 1 day ago
Runtime error
  1. public class Main {
  2. public static void main(String[] args) {
  3. long time = System.currentTimeMillis();
  4. firstPrimes(1000000);
  5. System.out.println(System.currentTimeMillis() - time);
  6. }
  7. public static int[] firstPrimes(int n) {
  8. int[] primes = new int[n];
  9. int found = 1;
#ppeSVQ Java7 1 day ago
Compilation error
  1. public class Ideone {
  2. public static void main(String[] args) {
  3. long time = System.currentTimeMillis();
  4. firstPrimes(1000000);
  5. System.out.println(System.currentTimeMillis() - time);
  6. }
  7. public static int[] firstPrimes(int n) {
  8. int[] primes = new int[n];
  9. int found = 1;
#VX3I6i Java7 1 day ago
Compilation error
  1. public class Ideone {
  2. public static void main(String[] args) {
  3. long time = System.currentTimeMillis();
  4. firstPrimes(1000000);
  5. System.out.println(System.currentTimeMillis() - time);
  6. }
  7. public static int[] firstPrimes(int n) {
  8. int[] primes = new int[n];
  9. int found = 1;
#MzH6Yo Java7 23 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. {
#NXCGhm Java7 1 day ago
Compilation error
  1. public class HelloWorld{
  2.  
  3. public static void main(String []args){
  4. System.out.println("Hello World");
  5. }
  6. }
#bDwDxn Java7 1 day 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. import java.awt.*;
  7. import java.awt.event.*;
  8.  
  9. class FillColor extends Frame{
#4mO8Wx Java7 1 day 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. import java.awt.*;
  7. import java.awt.event.*;
  8.  
  9. class FillColor extends Frame{
#MARABa 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. {
#TT2aA3 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. {
#Jg7Zpb 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. {
#awP1Iv 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. class A{
  8. {
  9. System.out.println("ABC");
#PQbv6V 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. {
#lXGcnK Java7 1 day 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. {
#GO3guz 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. {
#7zYd1S Java7 11 hours ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.io.*;
  4. import java.util.*;
  5. import java.text.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#cM7LHK 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. {
#euUJqR Java7 1 day ago
Compilation error
  1. //STEP 1. Import required packages
  2. import java.sql.*;
  3.  
  4. public class JDBCExample {
  5. // JDBC driver name and database URL
  6. static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
  7. static final String DB_URL = "jdbc:mysql://localhost/";
  8.  
  9. // Database credentials
#zbrTuP 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. {
#nWvI5R 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. {
#HURODA 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. {
#1WeBlN 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. {
#rZ4smD 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. {
#UONdoI Java7 1 day 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. {
#4QUgIg Java7 1 day ago
Compilation error
  1. import java.util.Scanner;
  2. import java.io.*;
  3.  
  4.  
  5.  
  6. /**
  7. *
  8. * @Author Khoa Le
  9. */
#0iHJ4H Java7 1 day ago
Success
  1. import java.util.regex.*;
  2. import java.text.*;
  3.  
  4. class Ideone
  5. {
  6. public static void main (String[] args) throws java.lang.Exception
  7. {
  8. String VIETNAMESE_DIACRITIC_CHARACTERS
  9. = "ẮẰẲẴẶĂẤẦẨẪẬÂÁÀÃẢẠĐẾỀỂỄỆÊÉÈẺẼẸÍÌỈĨỊỐỒỔỖỘÔỚỜỞỠỢƠÓÒÕỎỌỨỪỬỮỰƯÚÙỦŨỤÝỲỶỸỴ";
#X2dx3D Java7 1 day ago
Success
  1. class WhileExample
  2. {
  3. public static void main( String s
  4. [])
  5. {
  6. int n = 0 ;
  7. int sum = 0 ;
  8. int count = 10;
  9. while( n <= 6 )
#ciqmbv 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. {
#7V1IOl Java7 1 day ago
Success
  1. class Example {
  2. public static void main( String s
  3. []) {
  4. A a = new A ();
  5. a . i = 65;
  6. a . j = 55;
  7. B b = new B ();
  8. b . i = 5 ;
  9. b . j = 95;