Welcome To Snipplr


Everyone's Recent Snippets Tagged java



« Prev 1 2 3 4 5 ... 10
  1. FAV

    Hibernate project

    In this article, we will show you how to create a Hibernate Application using Java configuration without using hibernate.cfg.xml to connect the MySQL database. Below diagram shows Java code for Hibernate settings equivalent to hibernate.cfg.xml's...
    XML 65 views posted 3 weeks ago by priyagchaudhary
  2. FAV

    Example of Java Sample SMS code

    This example of Java SMS Sample Code utilizes a clichéd Java Object API.
    Java 7 views posted 2 years ago by Broadnet
  3. FAV

    Big Number Bitwise Operator

    This Utility Class will receive two big number and do the Bitwise Operation on them using specific radix.
    Java 5 views posted 3 years ago by m3hdiii
  4. FAV

    Delegation pattern

    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.
    Java 3 views posted 3 years ago by kolepep
  5. FAV

    Strategic Pattern v3

    Strategic Pattern v3
    Java 5 views posted 4 years ago by jasonhue
  6. FAV

    Strategic Pattern v2

    strategic pattern with spring testing
    Java 4 views posted 4 years ago by jasonhue
  7. FAV

    Java Arrays.sort() Example

    An example of the Arrays.sort() function. Taken from: http://www.tutorialspoint.com/java/util/arrays_sort_int.htm
    Java 5 views posted 5 years ago by nulldev
  8. FAV

    Reverse String Array

    Reverses a Java string array, taken from: http://www.java-examples.com/java-reverse-string-array-example
    Java 6 views posted 5 years ago by nulldev
  9. FAV

    Concatenating String in Java

    Concatenating String in Java
    Java 4 views posted 5 years ago by lpiaitdepok
  10. FAV

    Comment style in Java

    Comment style in Java
    Java 2 views posted 5 years ago by lpiaitdepok
  11. FAV

    Heron's Formula

    Java Heron's formula
    Java 7 views posted 5 years ago by acecengic
  12. FAV

    Selection Sort Java

    selection sort in java
    Java 5 views posted 5 years ago by acecengic
  13. FAV

    Java Word Processor

    Applet that does basic word processor functions
    Java 3 views posted 5 years ago by acecengic
  14. FAV

    Install oracle-java one-liner

    * Install oracle-java with one line, prompt for sudo if not root - more infos on (duinsoft)[http://www.duinsoft.nl]
    Bash 6 views posted 5 years ago by dbiesecke
  15. FAV

    Fibonacci第n项java实现

    考虑到Fibonacci数列增长速度之快,返回值用long类型;如果long类型还不够,下一步考虑使用BigInteger类。 ---- //TODO * 补充两种方法的大O分析和性能测试
    Java 2 views posted 5 years ago by jacktan
  16. FAV

    Advanced Java mysql,oracle,... connect, full functions

    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 --
    Java 2 views posted 5 years ago by supupoff
  17. FAV

    Java Code Sample to Create PDF from HTML Using REST API

    This code sample shows how Java developers can create PDF file from HTML using Aspose.Pdf for Cloud API in their REST applications.
    Java 5 views posted 5 years ago by johansonkatherine
  18. FAV

    C# Code Sample to Create PDF from HTML Using REST API

    This code sample shows how C# developers can create PDF file from HTML using Aspose.Pdf for Cloud API in their REST applications.
    C# 6 views posted 5 years ago by johansonkatherine
  19. FAV

    Tree Generation by given string content using JAVA

    This is a java class to generate a tree by given string content
    Java 6 views posted 5 years ago by muzahidict
  20. FAV

    Java Code Samples for Converting Charts in Excel Files to Image Files

    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...
    Java 2 views posted 5 years ago by johansonkatherine
  21. FAV

    Java Code Samples for Converting Charts in Excel Files to Image Files

    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...
    Java 4 views posted 5 years ago by johansonkatherine
  22. FAV

    Convert Each TIFF Frame to JPEG & Transform them to PDF Format Using Java

    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...
    Java 4 views posted 6 years ago by johansonkatherine
  23. FAV

    Java: print values of all get-methods of an object

    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...
    Java 3 views posted 6 years ago by mcaordie
  24. FAV

    Trading at www.cex.io ( VB Script ) - Create your own Bitcoin Trading BOT

    ' ' ' 1, Create your cex.io account from https://cex.io/r/0/rbillig/0/ ( mandatory ) ' 2, Tranfer Bitcoins to you account ' 3, Under your CEX account, create a public and secret key ' 4, Modify the 3 vars below ( G_USERNAME, G_APIKEY...
    Visual Basic 6 views posted 6 years ago by rbillig
  25. FAV

    JPA NonFlushableQueryWrapper

    Wrapper over JPA query that avoid flush
    Java 3 views posted 6 years ago by pachaman
  26. FAV

    Externalizable Example

    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.
    Java 5 views posted 6 years ago by rnavanee
  27. FAV

    Java OutOfMemory Example

    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...
    Java 4 views posted 6 years ago by rnavanee
  28. FAV

    Determine the minimum number of coins for change

    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.
    Java saved by 1 person 1 views posted 6 years ago by rnavanee
  29. FAV

    Calculate The Second Highest Frequency

    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.
    Java saved by 1 person 2 views posted 6 years ago by rnavanee
  30. FAV

    Java Reflection and recursive JSON deserializer using Gson

    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.
    Java 8 views posted 6 years ago by mindinmotionmkd
« Prev 1 2 3 4 5 ... 10