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 13168 posted 4 years ago by NehaBharti5825
This was an assignment given to me in my Java course.
0 2438 posted 6 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 1489 posted 7 years ago by m3000
This example of Java SMS Sample Code utilizes a clichéd Java Object API.
0 1386 posted 7 years ago by Broadnet
This code snippet shows how to connect to a MySQL database using Connector/J.
0 1154 posted 7 years ago by syedhussim
This Utility Class will receive two big number and do the Bitwise Operation on them using specific radix.
0 1002 posted 8 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 1081 posted 8 years ago by kolepep
Strategic Pattern v3
0 1082 posted 9 years ago by jasonhue
strategic pattern with spring testing
0 1022 posted 9 years ago by jasonhue
findviewbyid in Fragment
0 1182 posted 9 years ago by afrinux
Concatenating String in Java
0 1060 posted 9 years ago by lpiaitdepok
Comment style in Java
0 1113 posted 9 years ago by lpiaitdepok
Java Heron's formula
0 1146 posted 9 years ago by acecengic
selection sort in java
0 1102 posted 9 years ago by acecengic
Applet that does basic word processor functions
0 1039 posted 9 years ago by acecengic
考虑到Fibonacci数列增长速度之快,返回值用long类型;如果long类型还不够,下一步考虑使用BigInteger类。 ---- //TODO * 补充两种方法的大O分析和性能测试
0 1020 posted 10 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 1581 posted 10 years ago by prgrmmraben
This code demonstrates the KnightsTour class I developed. See: http://www.snipplr.com/view/77383/knightstourjava/
0 987 posted 10 years ago by greymatters
This is a Java class for solving a knight's tour via Hamiltonian path and Hamiltonian cycle algorithms.
0 1011 posted 10 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 1878 posted 10 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 1068 posted 10 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 1107 posted 10 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 1301 posted 10 years ago by johansonkatherine
Write a code that will find the sum of any pairs of numbers
0 1037 posted 10 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 1901 posted 10 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 1636 posted 10 years ago by johansonkatherine
This is a java class to generate a tree by given string content
0 1036 posted 10 years ago by muzahidict
PHP developers can learn how to merge multiple PDF files into a single PDF file using PHP REST API and SDK. To merge PDFs, you need to upload input PDFs to Aspose for Cloud Service or any supported third party storage and then send a PUT request to A...
0 1603 posted 10 years ago by johansonkatherine
The following technical tip show how developers can Convert Chart in excel file to Image in java using Aspose.Cells component. Charts are visually appealing and make it easy for users to see comparisons, patterns, and trends in data. For instance, r...
0 1446 posted 10 years ago by johansonkatherine
The following technical tip show how developers can Convert Chart in excel file to Image in java using Aspose.Cells component. Charts are visually appealing and make it easy for users to see comparisons, patterns, and trends in data. For instance, r...
0 1354 posted 10 years ago by johansonkatherine
« Prev 1 2 3 4 5 ... 13