Welcome To Snipplr


Everyone's Recent Java Snippets Tagged class



« Prev 1 Next »
Ever got tired of writing System.out.print(); all the time when testing, well, to avoid this, just create a helper method that will narrow it down to print();
0 1500 posted 15 years ago by visudex
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 1721 posted 15 years ago by visudex
This is the test class for the LeadReassignment class.
0 1393 posted 15 years ago by leeclint
Great for formatting.
1 1782 posted 15 years ago by trusktr
Something I have always found annoying about JSF datatables is the limitation to only apply one header class style to the entire table. This is un-functional for datatables that would display monetary amount or other data that is typically right alig...
0 1657 posted 15 years ago by adriamooney
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 1534 posted 16 years ago by narkisr
Test harness for an implementation of the Luhn algorithm that checks the validity of a credit card number.
0 2123 posted 17 years ago by Uzbekjon
« Prev 1 Next »