Welcome To Snipplr


Everyone's Recent Java Snippets



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

    JAXB FileCreating

    Write Object XXX with accordingly Annotations to File answer_XXX in according Schema to the Object.
    Java 2 views posted 2 years ago by hoplite
  2. FAV

    Example of Java Sample SMS code

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

    Connect To A MySQL Database

    This code snippet shows how to connect to a MySQL database using Connector/J.
    Java 10 views posted 2 years ago by syedhussim
  4. FAV

    Big Number Bitwise Operator

    This Utility Class will receive two big number and do the Bitwise Operation on them using specific radix.
    Java 8 views posted 3 years ago by m3hdiii
  5. 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
  6. FAV

    Strategic Pattern v3

    Strategic Pattern v3
    Java 12 views posted 4 years ago by jasonhue
  7. FAV

    Strategic Pattern v2

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

    findviewbyid in Fragments

    findviewbyid in Fragment
    Java 5 views posted 5 years ago by afrinux
  9. FAV

    A* Pathfinding Example

    An A* pathfinding algorithm in Java, taken from: http://software-talk.org/blog/2012/01/a-star-java/
    Java 6 views posted 5 years ago by nulldev
  10. 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 10 views posted 5 years ago by nulldev
  11. 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
  12. FAV

    Concatenating String in Java

    Concatenating String in Java
    Java 3 views posted 5 years ago by lpiaitdepok
  13. FAV

    Comment style in Java

    Comment style in Java
    Java 8 views posted 5 years ago by lpiaitdepok
  14. FAV

    Heron's Formula

    Java Heron's formula
    Java 9 views posted 5 years ago by acecengic
  15. FAV

    Selection Sort Java

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

    Java Word Processor

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

    Fibonacci第n项java实现

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

    Map Mysql tables to java beans, by a one class

    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.
    Java 11 views posted 5 years ago by prgrmmraben
  19. FAV

    TestKnight.java

    This code demonstrates the KnightsTour class I developed. See: http://www.snipplr.com/view/77383/knightstourjava/
    Java 2 views posted 5 years ago by greymatters
  20. FAV

    KnightsTour.java

    This is a Java class for solving a knight's tour via Hamiltonian path and Hamiltonian cycle algorithms.
    Java 2 views posted 5 years ago by greymatters
  21. FAV

    a simple java servlet filter solution against Ddos attacks

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

    Some uses of JSONObject, JSONWriter and JSONTokener classes of org.json

    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...
    Java 6 views posted 5 years ago by prgrmmraben
  23. 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 5 views posted 5 years ago by supupoff
  24. FAV

    Load Existing Email Message and Modify its Contents inside Android Apps

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

    Find Pairs of Numbers

    Write a code that will find the sum of any pairs of numbers
    Java 6 views posted 5 years ago by rikesh_kisnah
  26. FAV

    Java code for Changing Color Space of PDF Document

    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...
    Java 5 views posted 5 years ago by johansonkatherine
  27. 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 7 views posted 5 years ago by johansonkatherine
  28. 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
  29. FAV

    Merge multiple PDFs using PHP REST API

    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...
    Java 11 views posted 5 years ago by johansonkatherine
  30. 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 5 views posted 5 years ago by johansonkatherine
« Prev 1 2 3 4 5 ... 14