Welcome To Snipplr


Everyone's Recent Java Snippets



« Prev 1 2 3 4 5 ... 13
The examples use real providers that launch real resources. That means they can cost money to experiment with. To avoid unexpected charges, be sure to understand the price of resources before launching them, and verify any unneeded resources are clea...
0 1047 posted 7 months ago by NehaBharti5825
This was an assignment given to me in my Java course.
0 512 posted 2 years ago by EthanEC94
this is the code to make the circular bitmap which is used in the image views of android. at the end of the code the circle mode of bitmap is created by the enum mode.
0 224 posted 3 years ago by m3000
This example of Java SMS Sample Code utilizes a clichéd Java Object API.
0 270 posted 3 years ago by Broadnet
This code snippet shows how to connect to a MySQL database using Connector/J.
0 225 posted 3 years ago by syedhussim
This Utility Class will receive two big number and do the Bitwise Operation on them using specific radix.
0 146 posted 4 years ago by m3hdiii
In software engineering, the delegation pattern is a design pattern in object-oriented programming where an object, instead of performing one of its stated tasks, delegates that task to an associated helper object.
0 183 posted 4 years ago by kolepep
Strategic Pattern v3
0 201 posted 5 years ago by jasonhue
strategic pattern with spring testing
0 198 posted 5 years ago by jasonhue
findviewbyid in Fragment
0 137 posted 5 years ago by afrinux
An A* pathfinding algorithm in Java, taken from: http://software-talk.org/blog/2012/01/a-star-java/
0 270 posted 5 years ago by nulldev
An example of the Arrays.sort() function. Taken from: http://www.tutorialspoint.com/java/util/arrays_sort_int.htm
0 273 posted 5 years ago by nulldev
Reverses a Java string array, taken from: http://www.java-examples.com/java-reverse-string-array-example
0 265 posted 5 years ago by nulldev
Concatenating String in Java
0 195 posted 5 years ago by lpiaitdepok
Comment style in Java
0 181 posted 5 years ago by lpiaitdepok
Java Heron's formula
0 247 posted 5 years ago by acecengic
selection sort in java
0 208 posted 5 years ago by acecengic
Applet that does basic word processor functions
0 200 posted 5 years ago by acecengic
考虑到Fibonacci数列增长速度之快,返回值用long类型;如果long类型还不够,下一步考虑使用BigInteger类。 ---- //TODO * 补充两种方法的大O分析和性能测试
0 163 posted 5 years ago by jacktan
DBHelper can retrieve Mysql tables into java objects, without any external libraries or a mapping configuration file. note: please test before use, then use at your own risk.
0 332 posted 6 years ago by prgrmmraben
This code demonstrates the KnightsTour class I developed. See: http://www.snipplr.com/view/77383/knightstourjava/
0 173 posted 6 years ago by greymatters
This is a Java class for solving a knight's tour via Hamiltonian path and Hamiltonian cycle algorithms.
0 161 posted 6 years ago by greymatters
a simple solution that illustrates a very practical usage of java filters, in this example we try to block any Ddos attack, spam access and route clients or visitors to there corresponding pages. note: please test before use, then use at your own ri...
0 351 posted 6 years ago by prgrmmraben
This snippet of code, illustrates how to put, remove or accumulate values in a JSONObject object, use of JSONWriter for putting key/value pairs in "quick and convenient way" as stated by official documentation, and more practical uses for org.json b...
0 184 posted 6 years ago by prgrmmraben
use This Class to conenct to any database mysql oracle access and postgresql and use functions to select update insert or update data from database --
0 205 posted 6 years ago by supupoff
This technical tip shows how to load any existing email message and modify its contents before saving it back to disk using Aspose.Email for Android API. To do this successfully, specify the MessageFormat when loading the email message from disk. In...
0 221 posted 6 years ago by johansonkatherine
Write a code that will find the sum of any pairs of numbers
0 182 posted 6 years ago by rikesh_kisnah
This code shows how java developers can change color space of PDF document from RGB color to CMYK and vice versa by using Aspose.PDF for Java Library. The following methods have been implemented in the Operator class for changing colors. Use it to ch...
0 253 posted 6 years ago by johansonkatherine
This code sample shows how Java developers can create PDF file from HTML using Aspose.Pdf for Cloud API in their REST applications.
0 267 posted 6 years ago by johansonkatherine
This is a java class to generate a tree by given string content
0 227 posted 6 years ago by muzahidict
« Prev 1 2 3 4 5 ... 13