Java Programming Examples

     
Search Java Programming Examples


Coding Conventions

       pdf   Javadoc HTML   -   Java Code Conventions (from Sun Microsystems)


Collections Framework

       HTML   MS Word    -   Java Collections Framework Overview
       Power Point   MS Word    -   Java Collections Framework
       pdf      -   Collections in Java
       Source Code   Example Output    -   The Quintessential Collection
       Source Code   Example Output    -   Array Example
       Source Code   Example Output    -   ArrayList Example
       Source Code   Example Output    -   LinkedList Example
       Source Code   Example Output    -   TreeSet Example
       Folder   MS Word    -   Predicate (Filtering) Example


Data / Time / Calendar Functions

       Source Code   Example Output    -   Date / Time Example
       Source Code   Example Output    -   Calendar Example
       Source Code   Example Output    -   Month View


Design Patterns

       HTML      -   Introduction To Using Design Patterns
       HTML      -   Java Design Patterns
       Source Code   Example Output    -   Typesafe Enum Pattern


Input and Output (I/O)

       Text      -   README_ReadFromStdin.txt
       Text      -   README_InputFile.txt
       Source Code   Example Output    -   Provides Convenience Methods for Converting HEX Values
       Folder   MS Word    -   Filenames and Pathnames Example
       Folder   MS Word    -   Files Example
       Folder   MS Word    -   Directories Example
       Folder   MS Word    -   Reading and Writing Example
       Folder   MS Word    -   Custom Logging Example


JavaCC

       Text       -   README.txt
       HTML      -   The JavaCC FAQ
       pdf   MS Word    -   Description of the JavaCC Grammar File
       JavaCC Source Code   Example Output    -   SimpleCalc1.jj


Javadoc

       pdf   MS Word    -   A Javadoc Primer
       Folder   MS Word    -   Class Example
       Folder   MS Word    -   Package Example


JDBC

       Text      -   The JDBC Connection Classes
       Text      -   SQL Datatypes and Java Datatypes
       Source Code   Example Output    -   Connection Example
       Source Code   Example Output    -   Connection Options (i.e. SYSDBA)
       Source Code   Example Output    -   Password Management/Password Aging Features In JDBC
       Source Code   Example Output    -   Query Example
       Source Code   Example Output    -   DDL Example
       Source Code   Example Output    -   DatabaseMetaData Example
       Source Code   Example Output    -   Tablespace Usage Query
       Source Code   Example Output    -   Serialize Objects to Oracle
       Folder   MS Word    -   Large Objects - (LOBs)
       Folder   MS Word    -   PL/SQL and JDBC
       Folder   MS Word    -   Write Text File to Table
       Folder   MS Word    -   JDBC Application (with Oracle JVM and complete Ant Example)


JNDI

       Text      -   JNDI Overview
       Source Code   Example Output    -   JNDI - File Systems Demo 1


LDAP

       Folder   MS Word    -   Netscape LDAP SDK


Logging Facilities

       Text      -   Core Objects
       Text      -   Logging Priority Levels
       pdf   MS Word    -   Introduction to Java Logging Facilities
       Source Code   Example Output    -   Logging Demo (1) - Java SDK 1.4 Logging API
       Source Code   Example Output    -   Logging Demo (2) - Java SDK 1.4 Logging API
         Logging Output XML File    -   Logging Demo (2) - LoggingDemo2.xml
       Folder   MS Word    -   Logger Relationship Example


Math

       Source Code   Example Output   -   Math Library Examples


Miscellaneous Java

       HTML     -   Using CLASSPATH and SOURCEPATH
       HTML     -   Java Primitive Types
       HTML     -   Java Options For Garbage Collection
       HTML     -   Using javap
       Source Code   Example Output    -   Converting Data Types
       Source Code   Example Output    -   Auto increment/decrement operator
       Source Code   Example Output    -   Play standard audio files (WAV or MID)
       Source Code   Example Output    -   Java Statement Runner
       pdf   MS Word    -   Using the CLASSPATH or Other Packaged APIs
       pdf   MS Word    -   Using the JAR Utility
       pdf   MS Word    -   The Java Class Disassembler
       Source Code   Example Output    -   Garbage Collection (verbose option)


Networking

            -   Java Networking Programming Overview
       Source Code   Example Output    -   Get Service By Name
       Folder   MS Word    -   Internet Protocol (IP) Address Example
       Folder   MS Word    -   Client Sockets Example
       Folder   MS Word    -   Server Sockets Example
       Folder   MS Word    -   Uniform Resource Identifier (URI) Examples


Object-Oriented Techniques

       HTML      -   Object-Oriented Techniques
       Source Code   Example Output    -   Object Equality
       Source Code   Example Output    -   Printing Objects using toString()
       Source Code   Example Output    -   Overriding the hashCode() Method
       Source Code   Example Output    -   Cloning Objects
       Source Code   Example Output    -   The Class Class


Oracle / Java Technologies

            -   JDBC Examples
            -   De-support Information - (J2EE & Corba in the Oracle9i Database)
            -   Deploying Java Servlets and JSPs using the Oracle HTTP Server - (Oracle 8i)
            -   JServer / Thin Driver Connection Manager for Oracle
            -   Serializing Java Objects to Oracle
            -   Introduction to Java Stored Procedures - (JServer / Oracle 8i)
            -   Oracle Servlet Engine - (OSE)
            -   Chronology of Java Technologies in Oracle


Parameters Passing

       Source Code   Example Output    -   Command line parameters
       Source Code   Example Output    -   Parameter Passing - Explained
       Source Code   Example Output    -   Parameter Passing (2) - Explained


Properties

       Text      -   Application.properties
       Source Code   Example Output    -   System Properties
       Source Code   Example Output    -   Property Files


Random Numbers

       Text      -   README.txt (Random Numbers)
       Folder   MS Word    -   java.lang.Math Class
       Folder   MS Word    -   java.util.Random Class


Reflection

       HTML      -   Introduction To Using Reflection
       pdf      -   Understanding Class.forName()
       Source Code   Example Output    -   Reflect Class Example
       Source Code   Example Output    -   Reflection Demo


Regular Expressions

       Text      -   README.txt
       Source Code   Example Output    -   Regular Expression Demo (Apache)
       Source Code   Example Output    -   Regular Expression Demo (Sun SDK 1.4)


Running External OS Commands

       HTML      -   Running External OS Commands Overview
       Source Code   Example Output    -   Running UNIX External OS Commands


Security

       Folder   MS Word    -   Security Manager / Access Controller
       Folder   MS Word    -   Java Cryptography Extension
       Folder   MS Word    -   Java Secure Sockets Extension
       Folder   MS Word    -   Java Authentication and Authorization Service


Serialization

       HTML      -   Using serialver
       Source Code   Example Output    -   Simple (Save / Load) Serialization Example


Strings

       Text      -   README.txt
       Source Code   Example Output    -   Substrings
       Source Code   Example Output    -   String tokenizer
       Source Code   Example Output    -   StringBuffer versus String
       Source Code   Example Output    -   Reverse string (by characters)
       Source Code   Example Output    -   Reverse string (by words)
       Source Code   Example Output    -   Accessing a string one character at a time
       Source Code   Example Output    -   Controlling the case of a string
       Source Code   Example Output    -   toString Example
       Source Code   Example Output    -   Beep / Date Example


Swing / AWT

       HTML      -   Events and Their Associated Listeners
       Source Code   Example Output    -   AWT Example
       Source Code   Example Output    -   Exit Application On Frame Close
       Source Code   Example Output    -   Confirm Exit Dialog
       Source Code   Example Output    -   FlowLayout Manager
       Source Code   Example Output    -   BorderLayout Manager
       Source Code   Example Output    -   CardLayout Manager
       Source Code   Example Output    -   pack() vs. setSize()
       Source Code   Example Output    -   Change Pluggable Look and Feel


Threads

       Text      -   When Is a Thread Considered Active?
       Text      -   Starting, Stopping and Joining Threads
       Source Code   Example Output    -   Thread Countdown (extending Thread)
       Source Code   Example Output    -   Thread Countdown (implement Runnable)
       Source Code   Example Output    -   Using the isAlive() method
       Source Code   Example Output    -   Using the join() method
       Source Code   Example Output    -   Using the join() method - (Another Example)
       Source Code   Example Output    -   Thread Naming
       Source Code   Example Output    -   The currentThread() method
       Source Code   Example Output    -   Enumerating Threads in an Application
       Source Code   Example Output    -   Parallelism Example


XML

       Text   HTML    -   XML / Example Notes

       Example XML File      -   Example XML and DTD File
       Example XML File   Example DTD File    -   Example XML and DTD File

       Example XML File      -   Example CDATA File

       pdf      -   DTD Overview
            -   DTD Tutorial
            -   Declaring Zero or One Occurrences of the Same Element
       pdf      -   All about JAXP (by Enhydra Strategist)
       pdf   MS Word    -   XML APIs

       Source Code   Example Output    -   DOM Example (Generic)
       Source Code   Example Output    -   SAX Example (Generic)
       Source Code   Example Output    -   Oracle XML Parser Example (DOM)
       Source Code   Example Output    -   Xerces2 XML Parser Example (DOM)
       Source Code   Example Output    -   Crimson XML Parser Example (DOM)

       Source Code   Example Output    -   JAXP Example (Uses default parser - which is Crimson)
         Example Output    -   JAXP Example (Using Crimson Parser)
         Example Output    -   JAXP Example (Using Xerces Parser)
         Example Output    -   JAXP Example (Using Oracle Parser)

       Source Code   Example Output    -   XML Tree Viewer (SAX)


ZIP / GZIP / Checksum

       Text      -   example1.txt
       Text      -   example2.txt
       Text      -   example3.txt
       Source Code   Example Output    -   Creating a ZIP File
       Source Code   Example Output    -   List the Contents of a ZIP File
       Source Code   Example Output    -   Retrieving all Files from a Zip File
       Source Code   Example Output    -   Compress File to GZIP Format
       Source Code   Example Output    -   Uncompressing File in GZIP Format
       Source Code   Example Output    -   Calculating the Checksum of a File / Adler-32
       Source Code   Example Output    -   Calculating the Checksum of a File / CRC-32



Copyright (c) 1998-2008 Jeffrey M. Hunter. All rights reserved.

All articles, scripts and material located at the Internet address of http://www.idevelopment.info is the copyright of Jeffrey M. Hunter and is protected under copyright laws of the United States. This document may not be hosted on any other site without my express, prior, written permission. Application to host any of the material elsewhere can be made by contacting me at jhunter@idevelopment.info.

I have made every effort and taken great care in making sure that the material included on my web site is technically accurate, but I disclaim any and all responsibility for any loss, damage or destruction of data or any other property which may arise from relying on it. I will in no case be liable for any monetary damages arising from such loss, damage or destruction.

Last modified on
Friday, 28-Apr-2006 16:34:50 EDT
Page Count: 1798695