Welcome To Snipplr


Everyone's Recent Java Snippets Tagged java



1 2 3 4 5 ... 8
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 2807 posted 14 years ago by bjornredemption
0 1575 posted 14 years ago by arunpjohny
0 1364 posted 14 years ago by shreyharia
0 1417 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 2596 posted 14 years ago by ehrenb
0 1180 posted 14 years ago by ziuek
This is the simpliest way to make toast
0 1215 posted 14 years ago by dzr_gregory
0 1123 posted 14 years ago by arunmishra07
metodo para generar hashcodes
0 920 posted 14 years ago by intoxicadocoder
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 1238 posted 14 years ago by abelperez
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 1326 posted 14 years ago by cruelfate
0 1362 posted 15 years ago by coder_
A much better implementation of the parameterized and randomized CrabWorld
0 1293 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 1050 posted 15 years ago by joswald
Factory for ObjectContainer for local db4o database
0 1084 posted 15 years ago by dogrizz
0 1373 posted 15 years ago by hariharank12
0 1281 posted 15 years ago by evandrix
This snippet will allow you to read user's input when they write in the console. This method uses the Scanner class, which is my favorite way of doing instead of using the Buffered Reader, with the Scanner, you can also read from a file.
0 1526 posted 15 years ago by visudex
This snippet will allow you to capture your screen in Java and saves the image as a PNG
0 1401 posted 15 years ago by visudex
0 1404 posted 15 years ago by marti1125
A simple way to get the enum indicated by its ordinal value.
0 1652 posted 15 years ago by studioevoque
0 1159 posted 15 years ago by sinisterdeath
0 1338 posted 15 years ago by studioevoque
0 1402 posted 15 years ago by studioevoque
A "quick and dirty" way to delete a directory. For more cleaner implementation, see http://www.google.com/codesearch/p?hl=en#SS2by_AKaLs/src/org/apache/commons/io/FileUtils.java&q=cleanDirectory&l=972
0 1311 posted 15 years ago by studioevoque
An [example][id]. Then, **anywhere** else in the doc, define the link: [id]: http://example.com/ "Title"
1 2194 posted 15 years ago by dankauffman
0 1199 posted 15 years ago by trusktr
1 2 3 4 5 ... 8