Welcome To Snipplr


Everyone's Recent Java Snippets Tagged java



1 2 3 4 5 ... 8
Iterating through cursor
0 725 posted 11 years ago by noloman
don't forget to add jfxrt.jar to class path
0 683 posted 11 years ago by alexedy
How to convert a drawable to a bitmap
0 706 posted 11 years ago by noloman
A simple way of correcting tests with Java. In this piece of code I just defined two possible models or answers, they're all random, but the only thing needed is to update them with valid answers. The length of the test? I just did it for a 10-questi...
0 796 posted 11 years ago by eiger824
A basic database made in Java. It resembles a mobile phone contacts activity in which user is prompted to introduce some data of new contacts.
0 696 posted 11 years ago by eiger824
A simple Text Encoder.
1 676 posted 11 years ago by eiger824
Web aplikacija generira slučajne registracijske oznake za grad Zagreb u odabranom formatu. Ispisuje se i broj mogućih različitih registracijskih tablica za taj format.
0 543 posted 11 years ago by DSTG_Kwan
When Domino is used to create a webservice consumer, it does not provide an easy way to add SOAP headers to method calls. To do so, extend the STUB class it provides, copy any methods that need SOAP headers, and insert a line after the 'createCall'...
0 576 posted 11 years ago by lspellman
Some webservices require a SOAP header to be added to requests (typically with authentication information). For Domino webservice consumer code, this can be handled by extending the generated stub class and rewriting the service calls that are being...
0 685 posted 11 years ago by lspellman
Reverse a linked list using Java.
0 579 posted 11 years ago by djangofan
Para genera clases de RMI skel y stub en proceso distribuidos
0 671 posted 11 years ago by thescorpion
Just a simple code snippet that uses cmd to send an ExtendScript to an application like Photoshop® or InDesign®.
0 508 posted 11 years ago by layouterlimits
Obtener el cursor de oracle y recorrerlo para sacar los datos
0 1839 posted 11 years ago by thescorpion
This is a code snippet that retrieves the signatures from a pdf document and the reason for them. It does that in approximately 200ms for one signature.
0 811 posted 11 years ago by alexedy
A useful utility class to identify Throwables by creating a checksum (using a message digest, such as MD5 or SHA1) of its stack trace
0 426 posted 11 years ago by dwijnand
It's no fun implementing QuickSort unless you can force it out of its blister-fast, O(n log n) speed and humiliate it with its worst-case, O(n^2) runtime. So that's what I set out to do. My naive partition simply pivots around the low item, but...
0 638 posted 11 years ago by rtperson
Projecto de LabP01 que consiste na criação de uma classe que permite efectuar operações sobre ficheiros de texto.
0 597 posted 12 years ago by N-genhocas
Classe Singleton
0 540 posted 12 years ago by kajinka13
Importare i metodi statici
0 499 posted 12 years ago by kajinka13
Número aleatorio entre a y a + b, excluyendo a + b: a + Math.random() * b
0 575 posted 12 years ago by goo
This snippet presents how the java library to ubuntu unity launcher could look like.
0 607 posted 12 years ago by kdaniel
0 539 posted 12 years ago by sabanulutas
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 601 posted 12 years ago by binaryadder
0 720 posted 12 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 545 posted 12 years ago by m3rol666
0 549 posted 12 years ago by m1b
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 783 posted 12 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 1434 posted 12 years ago by bjornredemption
1 2 3 4 5 ... 8