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
6360
posted 2 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
609
posted 4 years ago by m3000
This example of Java SMS Sample Code utilizes a clichéd Java Object API.
0
632
posted 4 years ago by Broadnet
This code snippet shows how to connect to a MySQL database using Connector/J.
0
555
posted 4 years ago by syedhussim
This Utility Class will receive two big number and do the Bitwise Operation on them using specific radix.
0
453
posted 6 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
525
posted 6 years ago by kolepep
An A* pathfinding algorithm in Java, taken from: http://software-talk.org/blog/2012/01/a-star-java/
0
712
posted 7 years ago by nulldev
An example of the Arrays.sort() function. Taken from: http://www.tutorialspoint.com/java/util/arrays_sort_int.htm
0
638
posted 7 years ago by nulldev
Reverses a Java string array, taken from: http://www.java-examples.com/java-reverse-string-array-example
0
608
posted 7 years ago by nulldev
考虑到Fibonacci数列增长速度之快,返回值用long类型;如果long类型还ä¸å¤Ÿï¼Œä¸‹ä¸€æ¥è€ƒè™‘使用BigInteger类。
----
//TODO
* è¡¥å……ä¸¤ç§æ–¹æ³•的大O分æžå’Œæ€§èƒ½æµ‹è¯•
0
474
posted 7 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
876
posted 7 years ago by prgrmmraben
This code demonstrates the KnightsTour class I developed.
See: http://www.snipplr.com/view/77383/knightstourjava/
0
496
posted 7 years ago by greymatters
This is a Java class for solving a knight's tour via Hamiltonian path and Hamiltonian cycle algorithms.
0
477
posted 7 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
990
posted 7 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
489
posted 7 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
511
posted 7 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
621
posted 7 years ago by johansonkatherine
Write a code that will find the sum of any pairs of numbers
0
466
posted 8 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
788
posted 8 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
667
posted 8 years ago by johansonkatherine
This is a java class to generate a tree by given string content
0
521
posted 8 years ago by muzahidict