Welcome To Snipplr


Everyone's Recent Java Snippets



1 2 3 4 5 6 ... 13
Configurare il Proxy sull'emulatore
0 331 posted 9 years ago by kajinka13
Número aleatorio entre a y a + b, excluyendo a + b: a + Math.random() * b
0 308 posted 9 years ago by goo
This snippet presents how the java library to ubuntu unity launcher could look like.
0 314 posted 9 years ago by kdaniel
This functions checks if a service is running or not.
2 427 posted 10 years ago by rockschtar
0 301 posted 10 years ago by sabanulutas
Displays a simple alert using Toast
0 316 posted 10 years ago by Vetromilla
Strings are sorted in ascending order. This was created by me in order to thwart Dr. McCloskey's evil ways of forcing CS majors to manually alphabetize lists of names and months.
0 357 posted 10 years ago by binaryadder
Need to check if your device is online before sending/getting a request? Here's how.
0 283 posted 10 years ago by chrisaiv
There are roughly three ways to do this: programatically, through stylesheets, or through the Anroid manifest.
0 429 posted 10 years ago by chrisaiv
This is part of a much larger class but I wanted to give enough context to explain the value of GeoCoder. GeoCoder has two methods called getFromLocation() and getFromLocationName() that allow you to capture an address or coordinates.
1 320 posted 10 years ago by chrisaiv
bind it to ctrl+enter and everything that GroovyConsole do jEdit will do too. Uses groovy installation.
0 270 posted 10 years ago by guai
I made this because org.apache.commons.lang.StringUtils does not have this method. I used this because i was dealing with a legacy db where all fields were char. trailing spaces were a pita.
0 284 posted 10 years ago by m3rol666
0 311 posted 10 years ago by m1b
0 284 posted 10 years ago by hkarakose
0 233 posted 10 years ago by hkarakose
A simple utility class that uses the H2 SQL Db to maintain a database connection. It also gives a convenience method to run SQL scripts. _Note:_The init.sql value is hardcoded, and should be replaced by a static variable if needed
0 425 posted 10 years ago by studioevoque
Artificial intelligence basics : This is a backward chaining implementation which works with horn form knowledge bases. Had some trouble finding any simple and easy to understand examples online - so here's my version!!! http://en.wikipedia.org/wiki/...
0 867 posted 10 years ago by bjornredemption
Artificial intelligence basics : This is a forward chaining implementation which works with horn form knowledge bases. Had some trouble finding any simple and easy to understand examples online - so here's my version!!! http://en.wikipedia.org/wiki/...
0 1050 posted 10 years ago by bjornredemption
Bei vielen Applikationen fällt auf, dass beim Start ganz kurz ein komplett schwarzer Screen auf dem Display erscheint, der jedoch gleich wieder verschwindet. Über diesem Screen ist dann ein schmaler grauer Balken, in dem der Name der Applikation st...
0 321 posted 10 years ago by UTA2000
0 400 posted 10 years ago by arunpjohny
0 355 posted 10 years ago by shreyharia
0 409 posted 10 years ago by KolNedra
0 302 posted 10 years ago by KolNedra
1 2 3 4 5 6 ... 13