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

#n9malh Java7 20 hours ago
Success
  1. class Ideone {
  2. public static boolean check(String text) {
  3. char[] convertText = text.toCharArray();
  4. int counter = 0;
  5.  
  6. for ( int i = 0, last = text.length(); i < last; i++ ) {
  7. if ( convertText[i] == '(' ) {
  8. counter += 1;
  9. } else if ( convertText[i] == ')' ) {
#OpbhpS Java7 20 hours ago
Compilation error
  1. class Ideone {
  2. public static boolean check(String text) {
  3. // char[] convertText = text.toCharArray();
  4. int counter = 0;
  5.  
  6. for ( int i = 0, last = text.length(); i < last; i++ ) {
  7. if ( text[i] == '(' ) {
  8. counter += 1;
  9. } else if ( text[i] == ')' ) {
#ffjUq2 Java7 20 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. {
#IBviXb Java7 21 hours ago
Success
  1. import java.util.*;
  2. import java.io.*;
  3. class Q2
  4. {
  5. public static void main(String args[])
  6. {
  7. Scanner d=new Scanner(System.in);
  8. int i,j,t;
  9. long x,n;
#buVG06 Java7 21 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. {
#qgeJtc Java7 21 hours ago
Success
  1. import java.util.*;
  2. import java.io.*;
  3. class Q2
  4. {
  5. public static void main(String args[])
  6. {
  7. Scanner d=new Scanner(System.in);
  8. int i,j,t;
  9. long x,n;
#QuGlRR Java7 21 hours ago
Success
  1. import java.util.*;
  2. class Primes {
  3. public static void main(String[] args) {
  4. List p = new ArrayList();
  5. p.add(7);
  6. p.add(2);
  7. p.add(5);
  8. p.add(2);
  9. Collections.sort(p);
#xlVwQI Java7 21 hours ago
Compilation error
  1. import java.util.*;
  2. class Primes {
  3. public static void main(String[] args) {
  4. List p = new ArrayList();
  5. p.add(7);
  6. p.add(2);
  7. p.add(5);
  8. p.add(2);
  9. p.sort();
#DF3yZz Java7 15 hours ago
Success
  1. import java.io.BufferedReader;
  2. import java.io.IOException;
  3. import java.io.InputStreamReader;
  4. import java.util.ArrayList;
  5. import java.util.Arrays;
  6. import java.util.LinkedList;
  7. import java.util.StringTokenizer;
  8.  
#NCwlWh Java7 21 hours ago
Compilation error
  1. package com.javarush.test.level01.lesson06.task01;
  2. public class Solution
  3. {
  4. public static void main(String[] args)
  5. {
  6. System.out.println("Меня зовут Амиго.");
  7. String s= "Я согласен на зарплату $";
  8. int a=800;
  9. int b=1500;
#d759lq Java7 21 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. {
#XVKZ10 Java7 21 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. {
#2H4oVH Java7 21 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. {
#k6Nqvz Java7 21 hours 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. {
#J9478D Java7 21 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. {
#bpnS0I Java7 22 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. {
#6uKiVm Java7 22 hours ago
Compilation error
  1. import java.nio.file.FileStore;
  2. import java.nio.file.FileSystem;
  3. import java.nio.file.FileSystems;
  4. import java.nio.file.Path;
  5. import java.nio.file.spi.FileSystemProvider;
  6.  
  7. public class Test {
  8.  
  9. public static void main(String[] args) {
#pAMlIn Java7 22 hours ago
Success
  1. import java.util.Scanner;
  2.  
  3.  
  4. class BeeNums {
  5.  
  6. public static void main(String[] args) {
  7.  
  8. Scanner s = new Scanner(System.in);
  9. long a = 0;
#40Q2du Java7 22 hours ago
Compilation error
  1.  
#6LzX0J Java7 22 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. {
#8xvKuI Java7 22 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. {
#xnu27v Java7 21 hours ago
Success
  1. import java.util.*;
  2. import java.io.*;
  3. class Q2
  4. {
  5. public static void main(String args[])
  6. {
  7. Scanner d=new Scanner(System.in);
  8. int i,j,t;
  9. long x,n;
#LOf00M Java7 22 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. {
#txyAT8 Java7 22 hours ago
Compilation error
  1. import java.util.Scanner;
  2.  
  3. /*
  4.  * Jan 28, 2015 6:39:30 PM
  5.  * mohamed265
  6.  */
  7.  
  8. public class Round247_B_Shower_Line {
  9. public static void next_permutation(long[] arr, int l) {
#re8Es8 Java7 22 hours 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. interface Test {
  9. int x = 10; // x is public static final and must be initialized here
#j6MdIc Java7 22 hours 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. {
#hbzJDJ Java7 22 hours ago
Success
  1. import java.util.*;
  2. class Q1
  3. {
  4. public static void main(String args[])
  5. {
  6. Scanner d=new Scanner(System.in);
  7. int i,n,t,x,j;
  8. t=d.nextInt();
  9. for(i=0;i<t;i++)
#IyKo91 Java7 23 hours ago
Compilation error
  1.  
  2. /*
  3.  * Jan 28, 2015 6:39:30 PM
  4.  * mohamed265
  5.  */
  6.  
  7. public class Main {
  8. public static void next_permutation(StringBuffer arr, int l) {
  9. if (l == arr.length()) {
#xlF1U3 Java7 18 hours ago
Runtime error
  1.  
  2.  
  3. /**
  4.  *
  5.  * @author Nirjhar
  6.  */
  7.  
  8. import java.io.*;
  9. class c2 {
#X6vtMo Java7 23 hours ago
Runtime error
  1. import java.util.*;
  2. import java.math.BigInteger;
  3. class Q1
  4. {
  5. public static void main(String args[])
  6. {
  7. Scanner d=new Scanner(System.in);
  8. int i,n,t,x;
  9. t=d.nextInt();