Welcome To Snipplr
Everyone's Recent Java Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
13115
posted 4 years ago by NehaBharti5825
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
1477
posted 7 years ago by m3000
This example of Java SMS Sample Code utilizes a clichéd Java Object API.
0
1378
posted 7 years ago by Broadnet
This code snippet shows how to connect to a MySQL database using Connector/J.
0
1142
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
992
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
1074
posted 8 years ago by kolepep
考虑到Fibonacci数列增长速度之快,返回值用long类型;如果long类型还ä¸å¤Ÿï¼Œä¸‹ä¸€æ¥è€ƒè™‘使用BigInteger类。
----
//TODO
* 补充两ç§æ–¹æ³•çš„大O分æžå’Œæ€§èƒ½æµ‹è¯•
0
1002
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
1571
posted 10 years ago by prgrmmraben
This code demonstrates the KnightsTour class I developed.
See: http://www.snipplr.com/view/77383/knightstourjava/
0
976
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
1003
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
1862
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
1057
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
1102
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
1293
posted 10 years ago by johansonkatherine
Write a code that will find the sum of any pairs of numbers
0
1023
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
1887
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
1626
posted 10 years ago by johansonkatherine
This is a java class to generate a tree by given string content
0
1024
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
1592
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
1431
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
1341
posted 10 years ago by johansonkatherine