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

#74yRsr Java7 23 hours ago
Compilation error
  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.  
#OhtM24 Java7 23 hours ago
Success
  1. class ScopeClass{
  2. public static void main(String argv[]){
  3. String s="banana";
  4. //lastIndexOf(2,s);
  5. s.indexOf('a');
  6. //s.charAt(2);
  7. //indexOf(s,'v');
  8. }
  9. }
#aOqrjG 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.  
  9. class Temperature
#KF7Upn 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. {
#nUJX5z 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. {
#UdUU9m 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 BrokenEncapsulationTest {
  8.  
  9. public void testAddCount() {
#U2lV6T Java7 1 day ago
Compilation error
  1. public class BrokenEncapsulationTest {
  2.  
  3. @Test
  4. public void testAddCount() {
  5. InstrumentedHashSet<String> set = new InstrumentedHashSet<String>();
  6.  
  7. set.addAll(Arrays.asList("Snap", "Crackle", "Pop"));
  8.  
  9. assertEquals(3, set.addCount);
#zTXcvK 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. {
#q9aqZs 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. interface myinter {
  8. public void print();
  9. public int myint = 1;
#dG1LPK 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. /* Name of the class has to be "Main" only if the class is public. */
  9. class Ideone
#PGILNw 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.  
#Xt5ZgO Java7 1 day ago
Compilation error
  1. public void getState(OutputStream output) throws Exception {
  2. List<ChatAction> actionList = new ArrayList<ChatAction>();
  3.  
  4. synchronized(state) {
  5. for (Map.Entry<String, Set<String>> entry : state.entrySet()) {
  6. String channelName = entry.getKey();
  7. Set<String> set = entry.getValue();
  8. for (String nickname : set) {
  9. actionList.add(
#tpLqFP 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. private class Num {
  9. private int number1 = 10;
#r2x5zV 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 Num {
  9. private int number1 = 10;
#wkDc37 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. {
#farWRb 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. {
#nplyIs 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. {
#aBJcSZ Java7 1 day ago
Compilation error
  1. import java.io.*;
  2.  
  3. /* Name of the class has to be "Main" only if the class is public. */
  4. class Ideone
  5. {
  6. public static void main (String[] args) throws java.lang.Exception
  7. {
  8. int day;
  9. int month;
#JLwl3g 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. {
#4Co3kL 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. {
#Bl759Y 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. {
#t1UOu1 Java7 1 day ago
Success
  1. class Utils {
  2. public static void main (String[] args) throws java.lang.Exception {
  3. System.out.println(toBase(9, 3));
  4. }
  5.  
  6. public static String toBase(int number, int base) {
  7. StringBuilder builder = new StringBuilder();
  8.  
  9. do {
#9qxi3U Java7 1 day ago
Success
  1. class Ideone {
  2. public static void main (String[] args) throws java.lang.Exception {
  3. long t1 = System.currentTimeMillis();
  4.  
  5. for(int i = 0; i < 9000000; i++) {
  6. boolean even = ((10000000 % 2) == 0) ;
  7. }
  8.  
  9. long t2 = System.currentTimeMillis();
#evpQ4K Java7 1 day ago
Success
  1. class Ideone {
  2. private Node head, tail;
  3.  
  4. public static void main (String[] args) {
  5. Ideone ideone = new Ideone();
  6.  
  7. ideone.add("HOLA");
  8. ideone.add("MUNDO");
  9.  
#pb3uL4 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. {
#C4VShT Java7 1 day ago
Compilation error
  1. package boot.project;
  2. /**
  3.  *
  4.  * @author Mateus and Bruno
  5.  */
  6.  
  7. import java.io.*;
  8. import java.util.*;
#cXYBly 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. {
#EMYAoU Java7 1 day ago
Compilation error
  1. <sessions-enabled>true</sessions-enabled><!-- addeed for sessions -->"
#N7ixET Java7 1 day ago
Compilation error
  1. class Line
  2. {
  3. private:
  4. int x1, x2, y1, y2, algoID;
  5.  
  6. public :
  7. Line()
  8. {
#xPwgRt Java7 1 day ago
Compilation error
  1. <sessions-enabled>true</sessions-enabled><!-- addeed for sessions -->"