Peer-reviewed code snippets that anyone can edit
follow refactory on twitter
blog
feedback
A wiki for useful code snippets
Bugs? Suggestions?
38-107-191-113
create/login
options
RECENT
STUBS/REQUESTS
STARRED
ACTIVITY
ADD
recent in
java
tagged
example
java
example
helloworld
74-44-79-115
Hello World example in Java
permalink
related
edit
fork
history
java
swing
example
helloworld
g_william
Hello World in Java and Swing
permalink
related
edit
fork
history
java
example
helloworld
94-213-19-125
Hello World example in Java
permalink
related
edit
fork
history
public snippets
This is a community-maintained collection of reusable code snippets.
Contribute something
without logging in, or improve existing contributions. All code is dedicated to the public domain unless otherwise specified.
stats
/
top contributers
Languages
highlight
sort:
alpha
/
pop
show:
top
/
all
java
swing
+
4d
+
actionscript
+
actionscript3
+
apl
+
assembly
+
awk
+
bash
+
bat
+
batch
+
brainfuck
+
c
+
cake
+
cakephp
+
cmd
+
cocoa
+
commonlisp
+
cpp
+
csharp
+
css
+
curl
+
delphi
+
ecmascript
+
ecmascript5
+
elisp
+
erlang
+
fortran
+
haskell
+
html
+
java
-
javascript
+
javascript16
+
javascript17
+
javascript18
+
jquery
+
js
+
ksh
+
linux
+
lisp
+
lua
+
modula-3
+
mysql
+
net
+
obj-c
+
octave
+
perl
+
php
+
php4
+
php5
+
powershell
+
propel
+
python
+
r
+
rebol
+
regexp
+
ruby
+
scheme
+
sed
+
sh
+
shell
+
smalltalk
+
svn
+
svn15
+
swing
+
symfony
+
symfony12
+
tcl
+
uikit
+
vala
+
vb
+
vb60
+
vba
+
vbscript
+
vim
+
visualbasic
+
z80
+
Keywords
highlight
sort:
alpha
/
pop
show:
top
/
all
example
helloworld
+
alphabetsequence
+
awt
+
base
+
bufferedreader
+
char
+
comments
+
convert
+
date
+
debug
+
delete
+
documentation
+
example
-
factory
+
file
+
filereader
+
frame
+
general
+
generator
+
generqator
+
gui
+
hack
+
helloworld
+
hibernate
+
infix
+
int
+
integer
+
io
+
java
+
javadoc
+
javax
+
math
+
methods
+
miaominio
+
notation
+
opengl
+
org
+
port
+
prefix
+
primalitytest
+
primefactorization
+
primenumbergeneration
+
primenumbers
+
probability
+
processing
+
properties
+
random
+
remote
+
rtf
+
scanner
+
sequence
+
spring
+
string
+
strings
+
stringutils
+
swing
+
threads
+
tree
+
trick
+
utility
+