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 10889 posted 3 years ago by NehaBharti5825
This was an assignment given to me in my Java course.
0 2172 posted 5 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 1072 posted 6 years ago by m3000
This example of Java SMS Sample Code utilizes a clichéd Java Object API.
0 1076 posted 6 years ago by Broadnet
This code snippet shows how to connect to a MySQL database using Connector/J.
0 896 posted 6 years ago by syedhussim
This Utility Class will receive two big number and do the Bitwise Operation on them using specific radix.
0 753 posted 7 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 812 posted 7 years ago by kolepep
Strategic Pattern v3
0 777 posted 8 years ago by jasonhue
strategic pattern with spring testing
0 736 posted 8 years ago by jasonhue
findviewbyid in Fragment
0 867 posted 9 years ago by afrinux
Concatenating String in Java
0 750 posted 9 years ago by lpiaitdepok
Comment style in Java
0 830 posted 9 years ago by lpiaitdepok
Java Heron's formula
0 872 posted 9 years ago by acecengic
selection sort in java
0 826 posted 9 years ago by acecengic
Applet that does basic word processor functions
0 797 posted 9 years ago by acecengic
考虑到Fibonacci数列增长速度之快,返回值用long类型;如果long类型还不够,下一步考虑使用BigInteger类。 ---- //TODO * 补充两种方法的大O分析和性能测试
0 730 posted 9 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 1283 posted 9 years ago by prgrmmraben
This code demonstrates the KnightsTour class I developed. See: http://www.snipplr.com/view/77383/knightstourjava/
0 759 posted 9 years ago by greymatters
This is a Java class for solving a knight's tour via Hamiltonian path and Hamiltonian cycle algorithms.
0 753 posted 9 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 1530 posted 9 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 783 posted 9 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 839 posted 9 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 992 posted 9 years ago by johansonkatherine
Write a code that will find the sum of any pairs of numbers
0 749 posted 9 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 1553 posted 9 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 1343 posted 9 years ago by johansonkatherine
This is a java class to generate a tree by given string content
0 772 posted 9 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 1295 posted 9 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 1096 posted 9 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 1060 posted 9 years ago by johansonkatherine
« Prev 1 2 3 4 5 ... 13