Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
Codepad is a place for developers to share code snippets (PHP, Java, Bash, C, C++, Python and more). Create your HTML, CSS and JS Demos.
Sign up
Learn more
Sort
Popular
Most liked
Most recent
Time
Today
Last week
Last month
Last year
All time
Select Languages
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
ColdFusion
Command
CSS
Delphi
Django
Grunt
Gulp
HAML
HTML
iOS
Jade
Java
JavaScript
jQuery
Less
MySQL
Objective
Other
Pascal
Perl
PHP
PowerShell
Processing
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
Smarty
SQL
Swift
VHDL
XHTML
XML
Xojo
XSLT
SCSS
CoffeeScript
GLSL
Progress
Stylus
ES6
Coffee
TypeScript
X++
Haskell
SmallBASIC
JSX
SVG
Plain text
LUA
MDX
Apply
Reset
popular • Java
C_U1p5.c
Java
0
0
727
C_U1p6.c
Java
0
0
569
C_U1p7.c
Java
0
0
564
C_U1p8.c
Java
0
0
572
C_U1p9.c
Java
0
0
576
C_U1p10.c
Java
0
0
569
U1p3.cpp
Java
0
0
564
U1p4.cpp
Java
0
0
609
U1p5.cpp
Java
0
0
596
U1p6.cpp
Java
0
0
562
U1p7.cpp
Java
0
0
530
U1p8.cpp
Java
0
0
546
U1p9.cpp
Java
0
0
594
U1p10.cpp
Java
0
0
591
ACP_U1p1.c
Java
1
0
615
ACP_U1p2.c
Java
0
0
566
ACP_U1p3.c
Java
0
0
580
ACP_U1p4.c
Java
0
0
530
ACP_U1p5.c
Java
0
0
545
ACP_U1p6.c
Java
0
0
576