Do you need help with your Java programming?
Click here for instant help with your Java code.
Java Code Examples, Tips and Articles
Welcome to Javadb.com
Javadb.com provides source code examples in the Java language as well as other Java specific resources. Feel free to browse through the content or to search for a code example.
Apache Commons
How to Change the File Date and Time in Java using Commons IO
Get and Display File Size in a Readable Version using Commons IO
How to Read File Contents to String using Apache Commons IO
Arrays
How to Convert an Array to a Collection object
How to copy an array
Sorting an Array in Descending (Reverse) Order
Convert an Array to a List
Extend the size of an array
View more...
Collections
Using Generics to Store Specific Type of Objects in a HashMap
Convert LinkedList to Array
Convert a List (ArrayList) to an Array
Using a Set (or HashSet)
Using a Queue (or LinkedList)
View more...
Compression
Extract contents of a zip file
How to list the contents of a zip file
How to create a zip file
Database
Connect to database and call stored procedure
Using a database transaction with JDBC
Connecting to a Database - Step by Step
Connect to a database and read from table
Datatype conversions
Convert byte[ ] array to String
Convert String to byte array
Convert String to Boolean
Convert Boolean to String
Convert byte to String
View more...
EJB 3
Lifecycle Callbacks for Stateful Session Beans
How to create a Stateful Session Bean
Remote Business Interfaces for Session Beans
Lifecycle Callbacks for Stateless Session Beans
Stateless Session Bean
File I/O
How to Use a FileFilter in Java to List Files
How to List Files of a Certain Type using a FilenameFilter
Get file size
How to Convert a String to an InputStream in Java
Read Data from InputStream to a String
View more...
Graphics Java 2D
Drawing a Ractangle with rounded corners using Java 2D Graphics API
Drawing a Ractangle using Java 2D Graphics API
Drawing a Line using Java 2D Graphics API
Drawing a String using Java 2D Graphics API
Java Language Fundamentals
How to Format a Number in Java
The Java Keywords
How to Compare Strings in Java
Measure Time in Nano-Seconds
Using Varargs in Java
View more...
JMS
Creating a TopicConnectionFactory
JPA, Java Persistence API
A Simple Java Persistence API Entity
Networking
Sending a POST Request with Parameters From a Java Class
Downloading a web page using URL and URLConnection classes
Perform NSLookup with the InetAddress class
Reflection
Instantiate unknown class at runtime and call the object's methods
List methods of a class using Reflection
Invoke methods of an object using reflection
Servlets
Redirect Servlet Call to Another URL
Forward Call from a Servlet
Get Users IP Address
Get and Set Session Variables in a Servlet
Get Request Parameters in a Servlet
Small programs
The Tic Tac Toe Game in Java Code
Pretty Print SOAP Message and Display the SOAP message in HTML
Weight Converter, Pound to Kilogram, Ounce to Kilogram
Java Source Code for The HiLo Game
How to find and calculate prime numbers
Swing
Show a message dialog with JOptionPane
Set Look and Feel for a Swing application
JLabel with more than one row
Threads
Setting thread priorities
How to create a thread
Utility Classes
How to Compute the Difference Between Two Dates in Java
Using the StringTokenizer to Split a String
How to get the Current Week using the Calendar class
How to get the Current Time in Milliseconds using either Date or Calendar classes
Get the current TimeZone using the Calendar class
View more...
Web Services
Using a Message Handler to alter the SOAP Header in a Web Service Client
Create a Web Service Client with JAX-WS
Create a simple Web Service
Tutorials
Java Language Tutorial
Search for code examples on this site
Need help with your Java code? It's secure and confidential.
This is how it works:
Send a detailed description of what you need help with, the more details the better. Also provide a deadline for when it has to be finished. More time means better chance of putting your request into the schedule.
If the request is serious you will shortly receive an email with the price, to which you have to respond if you accept.
Once you have accepted, the work will begin on developing your code by an experienced Java developer. When the code is finished a link to a secure payment will be sent to you.
The source code is then sent to you once the payment is completed.
IMPORTANT! The request needs to be very detailed, else it may be ignored.
Write your detailed request here:
E-mail address: