Welcome To Snipplr


Everyone's Recent Snippets Tagged java



1 2 3 4 5 ... 9
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 1476 posted 14 years ago by binaryadder
0 2679 posted 14 years ago by jamepaul
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 1410 posted 14 years ago by m3rol666
0 1410 posted 14 years ago by m1b
Or remove the whole line for no link at all!
0 1592 posted 14 years ago by xcsteve99
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 1728 posted 14 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 2509 posted 14 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 2965 posted 14 years ago by bjornredemption
0 1711 posted 14 years ago by arunpjohny
0 1468 posted 14 years ago by shreyharia
you may not want to use the buggy apt version. just compile it yourself
0 1454 posted 14 years ago by abstraktor
0 1545 posted 14 years ago by cupakob
This is a current side project. I make changes (mainly adding new things) about once a week (when I have time). Notes: GUI in XML(not here), Eclipse Android plug-in, some images not here
0 2749 posted 14 years ago by ehrenb
0 1298 posted 14 years ago by ziuek
This is the simpliest way to make toast
0 1308 posted 14 years ago by dzr_gregory
0 1216 posted 14 years ago by arunmishra07
metodo para generar hashcodes
0 1022 posted 15 years ago by intoxicadocoder
0 1568 posted 15 years ago by jwielandt
Simple way to insert a new Column into a Cassandra ColumnFamily using the Thrift API. This snippet uses Cassandra 0.7.3 and Thrift 0.5. For a full explanation of how this code works, check out a detailed tutorial with a screencast here: http://abel...
0 1332 posted 15 years ago by abelperez
1 1708 posted 15 years ago by ejboy
This is especially useful to have appear in logs. While it is totally up to the JVM implementation what to return for the name, most seem to return a numeric process identifier.
0 1427 posted 15 years ago by cruelfate
0 1482 posted 15 years ago by coder_
A much better implementation of the parameterized and randomized CrabWorld
0 1406 posted 15 years ago by joswald
I had a subtle mistake in my code that was causing the exception. The corrected source code is below:
0 1168 posted 15 years ago by joswald
Factory for ObjectContainer for local db4o database
0 1173 posted 15 years ago by dogrizz
1 2 3 4 5 ... 9