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

Filter by: All Bash C C# C++ 4.9.2 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++ 4.3.2 C99 strict CLIPS Clojure COBOL COBOL 85 Common Lisp (clisp) D 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) Python (Pypy) R Scala Scheme (chicken) Scheme (guile) Smalltalk Tcl Text Unlambda Whitespace

#p7hKc5 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. {
#kAYYjd 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. {
#ZdvUIf Java7 1 day ago
Success
  1. import java.util.Scanner;
  2. public class Main{
  3. public static void print(Object x){
  4. System.out.println(x);
  5. }
  6. public static void main(String[] args){
  7. double testp, quizp, homeworkp;
  8. Scanner input = new Scanner(System.in);
  9. print("Enter your test percentage: ");
#fr1Dhi Java7 1 day ago
Runtime error
  1. class Ideone {
  2. public static void main (String[] args) {
  3. for ( short i = 32766; i <= 32767; i++ ) {
  4. System.out.println("Text");
  5. }
  6. }
  7. }
#Eb7YOK Java7 1 day ago
Success
  1. class Ideone {
  2. public static void main (String[] args) {
  3. for ( short i = 32766; i < 32767; i++ ) {
  4. System.out.println("Text");
  5. }
  6. }
  7. }
#NN2jvq Java7 1 day ago
Runtime error
  1. class Ideone {
  2. public static void main (String[] args) {
  3. for ( short i = 32766; i <= 32767; i++ ) {
  4. System.out.println("Text");
  5. }
  6. }
  7. }
#DRZUkc Java7 1 day ago
Runtime error
  1. class Ideone {
  2. public static void main (String[] args) {
  3. for ( short i = 32767; i <= 32767; i++ ) {
  4. System.out.println("Text");
  5. }
  6. }
  7. }
#VRb5CH Java7 1 day ago
Runtime error
  1. class Ideone {
  2. public static void main (String[] args) {
  3. for ( short i = 32767; i < 32768; i++ ) {
  4. System.out.println("Text");
  5. }
  6. }
  7. }
#e4xZFU Java7 1 day ago
Runtime error
  1. class Ideone {
  2. public static void main (String[] args) {
  3. for ( short i = 32767; i <= 32768; i++ ) {
  4. System.out.println("Text");
  5. }
  6. }
  7. }
#ONHmTK Java7 1 day ago
Runtime error
  1. class Ideone {
  2. public static void main (String[] args) {
  3. for ( short i = 32767; i < 32768; i++ ) {
  4. System.out.println("Text");
  5. }
  6. }
  7. }
#wjTB72 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 sun.management.ManagementFactoryHelper;
  7. import sun.management.ManagementFactoryHelper;
  8.  
  9. import javax.management.MBeanServer;
#ns0yY6 Java7 1 day ago
Success
  1. /* package whatever; // don't place package name! */
  2. import java.util.concurrent.ConcurrentHashMap;
  3. import java.util.Iterator;
  4.  
  5.  
  6. class Ideone
  7. {
  8.  
  9.  
#b3KGdx Java7 1 day ago
Runtime error
  1. package hey;
  2.  
  3. import java.lang.*;
  4.  
  5.  
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#4rkbuG Java7 1 day ago
Compilation error
  1. import java.util.concurrent.ConcurrentHashMap;
  2. import java.util.Iterator;
  3.  
  4.  
  5. public class ConcurrentHashMapExample
  6. {
  7.  
  8.  
  9. public static void main(String[] args)
#C9TRx1 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. {
#tIFELS 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. {
#JekUUq 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.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#c9Qpls Java7 1 day ago
Success
  1. class Svsm{
  2. static int a=m1();
  3. static int m1(){
  4. System.out.println("m1");
  5. return 3;
  6. }
  7. public static void main(String args[]){
  8. System.out.println("main");
  9. System.out.println(m1());
#8chM6o 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. {
#LbyDBV 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. {
#RQBno1 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. {
#pnmRMd 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. {
#qxPz0q 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. {
#BRYGqb 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. {
#ksAJOa Java7 1 day ago
Success
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone{
  6. public static void main (String[] args){
  7. for(int i = 1, j = 1, temp = 0; i <= 10; i++){
  8. System.out.print(i);
  9. if(i == j + temp){
#8CozT0 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. {
#o08AsC 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. {
#08Nv9F 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. {
#2qNoCm Java7 1 day ago
Success
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4.  
  5. public static void main(String[] args) {
  6.  
  7. Scanner leia = new Scanner(System.in);
  8. int N = leia.nextInt();
  9. System.out.println(N);
#YWd89U 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. {