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

#MK6WKi 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. {
#0nf4vh Java7 1 day ago
Success
  1. class Labas {
  2. static void sveikintis(){
  3. System.out.println("LABAS pasauli !!!");
  4. }
  5. static void sveikintis(String kalba){
  6. String ats="Atsiprašau - nesupratau";
  7. switch(kalba){
  8. case "LTU": ats = "Labas pasauli"; break;
  9. case "USA": ats = "Hello WORLD"; break;
#O1SUdJ Java7 1 day ago
Success
  1. class Labas {
  2. static void sveikintis(){
  3. System.out.println("LABAS pasauli !!!");
  4. }
  5. static void sveikintis(String kalba){
  6. String ats="Atsiprašau - nesupratau";
  7. switch(kalba){
  8. case "LTU": ats = "Labas pasauli"; break;
  9. case "USA": ats = "Hello WORLD"; break;
#a0A5uh Java7 1 day ago
Compilation error
  1. import java.awt.*;
  2. import java.awt.event.*;
  3. public class MsgBox extends Dialog
  4. implements ActionListener {
  5. private Button ok,can;
  6. public boolean isOk = false;
  7. /*
  8.   * @param frame parent frame
  9.   * @param msg message to be
#R0c11I 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. {
#3jiGZ6 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. {
#mag22s Java7 1 day ago
Compilation error
  1. class MyClass {
  2. private int anInt = 0;
  3. private int anotherInt = 0;
  4. MyClass(int intOne, int intTwo) {
  5. anInt = intOne;
  6. anotherInt = intTwo;
  7. }
  8. public void myMethod() {
  9. System.out.println("anInt: " + anInt + ", anotherInt: " + anotherInt);
#tKQ0pa 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. import java.util.Vector;
  8.  
  9. /* Name of the class has to be "Main" only if the class is public. */
#1XDpOi Java7 1 day ago
Compilation error
  1. import javax.swing.JProgressBar;
  2. public class Main {
  3. public static void main(String[]
  4. argv) throws Exception {
  5. int minimum = 0;
  6. int maximum = 100;
  7. JProgressBar progress = new
  8. JProgressBar(minimum, maximum);
  9. // Overlay a string showing the
#ZCKkUZ Java7 1 day ago
Compilation error
  1. import java.awt.BorderLayout;
  2. import java.awt.Container;
  3. import javax.swing.BorderFactory;
  4. import javax.swing.JFrame;
  5. import javax.swing.JProgressBar;
  6. import javax.swing.border.Border;
  7. public class ProgressSample {
  8. public static void main(String args
  9. []) {
#T3GV1o 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. {
#CGPki1 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. {
#1YLJsQ 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. {
#PQVtXk 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. public class Ideone {
  9. Day day;
#sIs2gT 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. import java.util.regex.Matcher;
  8. import java.util.regex.Pattern;
#Q7Ik7y Java7 1 day ago
Success
  1. class HelloWorldApp {
  2. public static void main(String[] args) {
  3. System.out.println("Hello World!"); // Display the string.
  4. }
  5. }
#gB3V1w Java7 1 day ago
Success
  1. class Labas {
  2. static void sveikintis(){
  3. System.out.println("LABAS pasauli !!!");
  4. }
  5. static void sveikintis(String kalba){
  6. String ats="Atsiprašau - nesupratau";
  7. switch(kalba){
  8. case "LTU": ats = "Labas pasauli"; break;
  9. case "USA": ats = "Hello WORLD"; break;
#lX2ria Java7 1 day ago
Success
  1. class Labas {
  2. static void sveikintis(){
  3. System.out.println("LABAS pasauli !!!");
  4. }
  5. static void sveikintis(String kalba){
  6. String ats="Atsiprašau - nesupratau";
  7. switch(kalba){
  8. case "LTU": ats = "Labas pasauli"; break;
  9. case "USA": ats = "Hello WORLD"; break;
#Dt9Khr Java7 1 day ago
Success
  1. class Labas {
  2. static void sveikintis(){
  3. System.out.println("LABAS pasauli !!!");
  4. }
  5. static void sveikintis(String kalba){
  6. String ats="Atsiprašau - nesupratau";
  7. switch(kalba){
  8. case "LTU": ats = "Labas pasauli"; break;
  9. case "USA": ats = "Hello WORLD"; break;
#6pvI2U 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. {
#DuRE8f Java7 1 day ago
Compilation error
  1. import java.util.regex.Matcher;
  2. import java.util.regex.Pattern;
  3.  
  4. public class RegexMatches
  5. {
  6. public static void main( String args[] ){
  7.  
  8. // String to be scanned to find the pattern.
  9. String line = "This order was placed for QT3000! OK?";
#dlFTQy Java7 1 day ago
Compilation error
  1. /* package whatever; // don't place package name! */
  2. import java.util.regex.Matcher;
  3. import java.util.regex.Pattern;
  4.  
  5. public class RegexMatches
  6. {
  7. public static void main( String args[] ){
  8.  
  9. // String to be scanned to find the pattern.
#G7KIVE 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. {
#vOoJRF Java7 1 day ago
Runtime error
  1. import java.awt.*;
  2. import javax.swing.*;
  3. public class Main {
  4. public static void main(String[]
  5. args) {
  6. final int MAX = 100;
  7. final JFrame frame = new JFrame
  8. ("JProgress Demo");
  9. // creates progress bar
#jAANyq 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. {
#XqUSFe 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. final class Base { }
  9. class Ideone extends Base { }
#phsmH6 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. {
#9bEA29 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. import java.util.Date;
  7.  
  8. /* Name of the class has to be "Main" only if the class is public. */
  9. class Ideone
#K0Rjkt Java7 1 day ago
Compilation error
  1. System.out.println (365*24*3600*1024*1024*1024);
#bg3JC1 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. {