Recent public codes are listed below. You can filter them by the following programming languages:
- view
- All
- Ada
- Assembler
- Assembler
- AWK (gawk)
- AWK (mawk)
- Bash
- bc
- Brainf**k
- C
- C#
- C++
- C++0x
- C99 strict
- CLIPS
- Clojure
- COBOL
- COBOL 85
- Common Lisp (clisp)
- D (dmd)
- Erlang
- F#
- Factor
- Falcon
- Forth
- Fortran
- Go
- Groovy
- Haskell
- Icon
- Intercal
- Java
- Java7
- JavaScript (rhino)
- JavaScript (spidermonkey)
- Lua
- Nemerle
- Nice
- Nimrod
- Objective-C
- Ocaml
- Oz
- Pascal (fpc)
- Pascal (gpc)
- Perl
- Perl 6
- PHP
- Pike
- Prolog (gnu)
- Prolog (swi)
- Python
- Python 3
- R
- Ruby
- Scala
- Scheme (guile)
- Smalltalk
- SQL
- Tcl
- Text
- Unlambda
- VB.NET
- Whitespace
-
1 2 3 4
int arrayint[][] = new int[10] [20] int arrayint1[][] = {{1, 2}, {1, 4}, {5,6}}; System.out.println(arrayint.length); System.out.println(arrayint1.length);
-
1 2 3
public static void main(String[] args) { System.out.println("Hello, World"); }
-
1 2 3 4 5 6 7
public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World"); } }
-
1 2 3 4 5 6 7 8 9
import java.util.*; import java.lang.*; class Main { public static void main (String[] args) throws java.lang.Exception { Long temp = new Long(3); Object temp2 = temp;
...
-
1 2 3 4 5 6 7 8 9
import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String [] args) { int t,i,n,M,j; Scanner scan = new Scanner(System.in);
...
-
1 2 3 4 5 6 7 8 9
import java.math.BigInteger; import java.util.Scanner; public class fibtwist { public static void main(String [] args) { int t,i,n,M,j; Scanner scan = new Scanner(System.in);
...
-
1 2 3 4 5 6 7 8 9
public class Problem10 { public static void main(String args[]) { int sum = 0; for(int a = 2; a < 2000000; a++) { if(isPrime(a)==(true))
...
-
1 2 3 4 5 6 7 8 9
public static void main(String args[]) { int sum = 0; for(int a = 2; a < 2000000; a++) { if(isPrime(a)==(true)) {sum+=a;}
...
-
1 2 3 4 5 6 7 8 9
public class Problem10 { public static void main(String args[]) { int sum = 0; for(int a = 2; a < 2000000; a++) { if(isPrime(a)==(true))
...
-
1
-
1 2 3 4 5 6 7 8
Long temp = new Long(3); Object temp2 = temp; long tecDbId = Long.parseLong(temp2.toString()); System.out.println(temp); System.out.println(temp2); System.out.println(tecDbId);
-
1 2 3 4 5 6 7 8 9
Hint. Read the exercise text thoroughly. It is extensive but simple, the text offers almost step-by-step instructions, all you need to do is to fill the gaps. Hint. Start early. You will need some time experimenting before everything works properly. In this assignment you will implement a small network system that supports up to four users that can send messages to each other. You will write four classes: (a) Implement a class Message. Each message must have a user-name of a sender, a user-name of a receiver, a subject and a body. • Implement a class Message with the above attributes. • Augment your class with a constructor that takes four parameters and initializes the attributes accordingly.
...
-
1 2 3 4 5 6 7 8 9
import java.io.*; import java.util.Random; enum PlayerActiveState {ACTIVE, INACTIVE}; enum UNORotate {FARWARD, REVERSE}; enum CardName {FIRSTNAME, LASTNAME}; enum CardType {REGULAR, UNO}; /*
...
-
1 2 3 4 5 6 7 8 9
import java.util.*; import java.lang.*; class Main { public static void main (String[] args) throws java.lang.Exception { function adda(var1,var2) {
...
-
1 2 3 4 5 6 7 8 9
import java.util.*; import java.lang.*; class Main { public static void main (String[] args) throws java.lang.Exception { function adda(a,b) {
...
-
1 2 3 4 5 6 7 8 9
import java.util.*; import java.lang.*; class Main { public static void main (String[] args) throws java.lang.Exception { function adda(numa1,numa2) {
...
-
1 2 3 4 5 6 7 8 9
import java.*; class Main{ public static void findPattern(String str, String pattern, String replacewith) { char[] chr = str.toCharArray(); char[] ptrn = pattern.toCharArray(); char[] dest = replacewith.toCharArray();
...
-
1 2 3 4 5 6 7 8 9
import java.*; class Main{ public static void findPattern(String str, String pattern, String replacewith) { char[] chr = str.toCharArray(); char[] ptrn = pattern.toCharArray(); char[] dest = replacewith.toCharArray();
...
-
1 2 3 4 5 6 7 8 9
import java.util.*; import java.lang.*; class Main { public static void main (String[] args) throws java.lang.Exception { function adda(numa1,numa2) {
...
-
1 2 3 4 5 6 7 8 9
public class Panel { public static void main (String[]args) { int count = 0; for (count = 0; count < 384; count + 12;) { System.out.print(count +
-
1 2 3 4 5 6 7 8 9
import java.util.*; import java.lang.*; class Main { public static void main (String[] args) throws java.lang.Exception { function add(num1,num2) {
...
-
1 2 3 4 5 6 7 8 9
import java.util.*; import java.lang.*; class Main { public static void main (String[] args) throws java.lang.Exception { function add(nm1,num2){ System.out.println(num1 + num2);
...
-
1 2 3 4 5 6 7 8 9
import java.util.*; import java.lang.*; class Main { public static void main (String[] args) throws java.lang.Exception { function add(nm1,num2){ System.out.println(num1 + num2)
...
-
1 2 3 4 5 6 7 8 9
import java.util.*; import java.lang.*; class Main { public static void main (String[] args) throws java.lang.Exception { function add(a1,a2){ System.out.println(a1 + a2)
...
-
1 2 3 4 5 6 7 8 9
import java.util.*; import java.lang.*; class Main { public static void main (String[] args) throws java.lang.Exception { function add(a1,a2) System.out.println(a1 + a2)
...
-
1 2 3 4 5 6 7 8 9
public static ZerosOnesCounter countZerosAndOnes (int[] x) { int zeros; int ones; for (int i = 0; i<x.length; i++) { if (x[i] == 0) zeros++ ; else if (x[i] == 1) ones++ ;
...
-
1 2 3 4 5 6 7 8 9
// Test.java import java.util.Comparator; import java.util.PriorityQueue; public class Test { public static void main(String[] args) { Comparator<String> comparator = new StringLengthComparator();
...
-
1 2 3 4 5 6 7 8 9
import java.util.*; public class Print { public static void main (String[] args) { Scanner scan=new Scanner(System.in); System.out.println("How many rows?"); row=scan.nextInt(); System.out.println("How many columns?");
...
-
1 2 3 4 5 6 7 8 9
import java.util.*; import java.lang.*; class Main { public static void main (String[] args) throws java.lang.Exception { System.out.println("Hey you fools!");
...
-
1 2 3 4 5 6 7 8
class DynamicArray { public static String[] assignValue(String[] array, String value, int pos) { String[] tempArray; int tempValue, currentValue = 0;
...


