Welcome To Snipplr


Everyone's Recent Java Snippets Tagged java



The AppDriver for my employee payroll app.
0 458 posted 13 years ago by trusktr
A custom class for retrieving deliminated data from a (custom) MyString string.
0 496 posted 13 years ago by trusktr
0 533 posted 13 years ago by trusktr
This is a modification of the Sun tutorial code that initializes the text editor to accept words that are not part of the auto-complete list. In the terms of the implementation, it is referred to as "not strict".
1 691 posted 13 years ago by studioevoque
An example to make myself remember how powerful Java enums are!
1 2174 posted 13 years ago by studioevoque
Don't forget the nifty event properties to detect double-click !
0 548 posted 13 years ago by studioevoque
Use this to read from a file. It is wrapped in a try/catch statement in case something breaks when trying to read the file. It will simply throw and exception (error) and continue rather than crashing your app.
0 1112 posted 13 years ago by trusktr
0 494 posted 13 years ago by trusktr
Required libraries: http://hc.apache.org/downloads.cgi
0 526 posted 13 years ago by cha0s
The solution to Project Euler [Problem 1](http://projecteuler.net/index.php?section=problems&id=1), written in Java as an example for my AP Computer Science class teaching internship.
1 563 posted 13 years ago by itaiferber
1 1171 posted 13 years ago by sospartan
0 609 posted 13 years ago by vagrantradio
Using http://www.clapper.org/software/java/util/javadocs/util/api/org/clapper/util/classutil/ClassFinder.html in order to find a class in class path.
0 618 posted 13 years ago by narkisr
0 534 posted 13 years ago by alejandrosuch
0 591 posted 13 years ago by putrakopo
0 466 posted 13 years ago by alejandrosuch
Prints GC stats every 1 second.
0 452 posted 14 years ago by liqweed
This is a snippet to validate anagrams of 'debit card'. It validates 'debit card' and 'bad credit'
0 472 posted 14 years ago by mangrar
1 689 posted 14 years ago by sukantahazra
0 475 posted 14 years ago by sukantahazra