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
Java snippets by Cesar Augusto Nogueira
Execute a shell command from Java
Java
0
8
1423
Validate email in Java using Regex
Java
0
5
2183
Play a sound with Java
Java
0
4
1725
Rescale an Image using Java
Java
0
3
1847
Strategy pattern with Lambda in Java
Java
0
5
1451
Picking Mouse Events on Bounds in JavaFX
Java
0
12
2634
Share functionality button on Android
Java
0
5
1416
Stop screen from dimming by enforcing wake lock in Android
Java
0
7
1730
Open an application by Android code
Java
0
8
1406
SharedPreferences example in Android
Java
0
9
1872
Drawing Image using Canvas in Android
Java
0
9
1577
Removing duplicates from ArrayList in Java
Java
0
4
1368
Copying file from assets directory to SDCard in Android
Java
0
12
5332
Countdown timer in Android
Java
0
12
1619
AutocompleteTextView in Android
Java
0
13
1582
Checking if SDCard is mounted on Android
Java
0
8
1254
Setting font to textView in Android
Java
0
10
1409
Checking connectivity and network information in Android
Java
0
5
1338
Showing a quick message on Android
Java
0
13
1748
Converting DIP / DP to pixels in Android
Java
0
7
1433