Welcome To Snipplr


Everyone's Recent Java Snippets Tagged java



« Prev 1 2 3 4 5 ... 8
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 150 posted 2 weeks ago by NehaBharti5825
This example of Java SMS Sample Code utilizes a clichéd Java Object API.
0 57 posted 2 years ago by Broadnet
This Utility Class will receive two big number and do the Bitwise Operation on them using specific radix.
0 20 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 34 posted 4 years ago by kolepep
Strategic Pattern v3
0 42 posted 4 years ago by jasonhue
strategic pattern with spring testing
0 40 posted 4 years ago by jasonhue
An example of the Arrays.sort() function. Taken from: http://www.tutorialspoint.com/java/util/arrays_sort_int.htm
0 61 posted 5 years ago by nulldev
Reverses a Java string array, taken from: http://www.java-examples.com/java-reverse-string-array-example
0 45 posted 5 years ago by nulldev
Concatenating String in Java
0 45 posted 5 years ago by lpiaitdepok
Comment style in Java
0 36 posted 5 years ago by lpiaitdepok
Java Heron's formula
0 49 posted 5 years ago by acecengic
selection sort in java
0 44 posted 5 years ago by acecengic
Applet that does basic word processor functions
0 42 posted 5 years ago by acecengic
考虑到Fibonacci数列增长速度之快,返回值用long类型;如果long类型还不够,下一步考虑使用BigInteger类。 ---- //TODO * 补充两种方法的大O分析和性能测试
0 22 posted 5 years ago by jacktan
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 23 posted 5 years ago by supupoff
This code sample shows how Java developers can create PDF file from HTML using Aspose.Pdf for Cloud API in their REST applications.
0 48 posted 5 years ago by johansonkatherine
This is a java class to generate a tree by given string content
0 49 posted 6 years ago by muzahidict
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 31 posted 6 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 29 posted 6 years ago by johansonkatherine
This technical tip shows how each TIFF frame can be converted to JPEG and then these images to PDF file using Aspose.Pdf for Java. Aspose.Pdf for Java is very well capable of dealing with TIFF images and can easily transform them into PDF format. How...
0 54 posted 6 years ago by johansonkatherine
Surprisingly often I want to print all the values of some object for debugging reasons, and if the object has a lot of different get methods (and toString is not good for this), it is a pain to write all the print commands. That's when this snippet i...
0 24 posted 6 years ago by mcaordie
Wrapper over JPA query that avoid flush
0 38 posted 6 years ago by pachaman
Externalizable interface provides you an alternate to Serializable interface. In Externalizable, you specify how/what to persist. Seralizable persists all non-transient elements using default serialize/deserialize implementation.
0 20 posted 6 years ago by rnavanee
This java code, when executed, throws OOM error. Java Console: ... Exception in thread "main" java.lang.OutOfMemoryError ... Heapdump Data: ... 1STHEAPFREE Bytes of Heap Space Free: 0 1STHEAPALLOC Bytes of Heap Space Allocated: 666...
0 48 posted 6 years ago by rnavanee
Determine the minimum number of coins for change Given any number between 1 and 99, determine how to give change with the minimum number of coins. You can assume that the coins are 1c, 2c, 5c, 10c, 20c and 50c.
1 16 posted 6 years ago by rnavanee
Calculate The Second Highest Frequency Write a method that accepts a String and returns the character with the second highest frequency. For example "aabbbc" would return 'a'. If the string contains spaces, they can be disregarded from the count.
1 19 posted 6 years ago by rnavanee
Change the generic class to whatever class you wish. JSON arrays, types etc, are not handled, you should do that. Purpose of this snippet is to deserialize only needed JSON keys with respect to the class members of your class.
0 49 posted 6 years ago by mindinmotionmkd
Iterating through a Dropbox Folder
0 38 posted 6 years ago by RobinD
FIll a List<Character> with ASCII (0-127) characters with a given number of characters.
0 37 posted 6 years ago by borysn
Generic method for printing a list to the console based on the number of characters per line.
0 20 posted 6 years ago by borysn
« Prev 1 2 3 4 5 ... 8