[an error occurred while processing this directive]

     


Coding Conventions

 

 

Java Code Conventions (from Sun Microsystems)

 

Collections Framework

 

 

 

Java Collections Framework

 

 

Collections in Java

 

The Quintessential Collection

 

Array Example

 

ArrayList Example

 

LinkedList Example

 

TreeSet Example

 

 

Predicate (Filtering) Example

 

 

 

Predicate.java

 

 

PredicateIterator.java

 

PredicateTest.java

 

Data / Time / Calendar Functions

 

 

Date / Time Example

 

Calendar Example

 

Month View

 

Design Patterns

 

 

 

Introduction To Using Design Patterns

 

 

Java Design Patterns

 

Typesafe Enum Pattern

 

Input and Output (I/O)

 

 

 

README_ReadFromStdin.txt

 

 

README_InputFile.txt

 

Provides Convenience Methods for Converting HEX Values

 

 

Filenames and Pathnames Example

 

 

Determine If a Filename Path is a File or a Directory

 

Converting Between Filename Path and a URL

 

Getting an Absolute Filename Path from a Relative Filename Path

 

Determining If Two Filename Paths Refer to the Same File

 

Getting the Parents of a Filename Path

 

 

Files Example

 

 

Determining If a File or Directory Exists

 

Creating a File

 

Getting the Size of a File

 

Deleting a File

 

Creating a Temporary File

 

Renaming a File or Directory

 

Moving a File or Directory to Another Directory

 

Getting and Setting the Modification Time of a File or Directory

 

Forcing Updates to a File to the Disk

 

 

Directories Example

 

 

Getting the Current Working Directory

 

Creating a Directory

 

Deleting a Directory

 

List the Files or Subdirectories in a Directory

 

Listing the File System Roots

 

Traversing a Directory

 

 

Reading and Writing Example

 

 

Cat a file to STDIN

 

Reading Text from Standard Input

 

Read an int from the console

 

Read/Write Text Files

 

Reading a File into a Byte Array

 

Writing to a File

 

Appending to a File

 

Using a Random Access File

 

 

Custom Logging Example

 

 

Formatting Output with PrintWriter (Logger1.java)

 

Formatting Output with PrintWriter (Testing Logger.java)

 

JavaCC

 

 

 

README.txt

 

 

The JavaCC FAQ

 

Description of the JavaCC Grammar File

 

SimpleCalc1.jj

 

Javadoc

 

 

A Javadoc Primer

 

 

Class Example

 

 

Javadoc Class Example

 

JavadocClassExample.java

 

 

Package Example

 

 

Javadoc Package Example

 

 

info/idevelopment/math/RandomNumbers.java

 

 

info/idevelopment/utils/InfoString.java

 

 

info/idevelopment/utils/StringCase.java

 

 

info/idevelopment/utils/StringUtils.java

 

JDBC

 

 

 

The JDBC Connection Classes

 

 

SQL Datatypes and Java Datatypes

 

Connection Example

 

Connection Options (i.e. SYSDBA)

 

Password Management/Password Aging Features In JDBC

 

JDBC Example

 

DDL Example

 

DatabaseMetaData Example

 

Tablespace Usage Query

 

Serialize Objects to Oracle

 

Fetch Size

 

 

JDBC Application (with Oracle JVM and complete Ant Example)

 

 

High Availability

 

 

Oracle Fast Connection Failover Example - (10g R2)

 

 

Large Objects - (LOBs)

 

 

CLOB Example

 

BLOB Example

 

BFILE File Example

 

 

 

DatabaseInventory.xml

 

 

DatabaseInventoryBig.xml

 

 

Tablespaces.xml

 

 

java_logo.jpg

 

 

PL/SQL and JDBC

 

 

 

create_all_ddl.sql

 

Calling PL/SQL Procedures from JDBC

 

Calling PL/SQL Functions from JDBC

 

Using PL/SQL Ref Cursors with JDBC

 

 

Write Text File to Table

 

 

 

Employee.txt

 

WriteFileToTable.java

 

JNDI

 

 

 

JNDI Overview

 

JNDI - File Systems Demo 1

 

LDAP

 

 

Netscape LDAP SDK

 

 

 

Setup / Configuration

 

 

airiusplus.ldif

 

LDAP Search Example

 

Read LDAP Entry given the DN

 

Searching and Comparing Example

 

Logging Facilities

 

 

 

Core Objects

 

 

Logging Priority Levels

 

Introduction to Java Logging Facilities

 

Logging Demo (1) - Java SDK 1.4 Logging API

 

Logging Demo (2) - Java SDK 1.4 Logging API

 

 

Logging Demo (2) - LoggingDemo2.xml

 

 

Logger Relationship Example

 

 

 

Parent Logger

 

 

Child Logger

 

Logger Application (Example)

 

Math

 

 

Math Library Examples

 

Miscellaneous Java

 

 

 

Using CLASSPATH and SOURCEPATH

 

 

Java Primitive Types

 

 

Java Options For Garbage Collection

 

 

Using javap

 

Converting Data Types

 

Auto increment/decrement operator

 

Play standard audio files (WAV or MID)

 

Java Statement Runner

 

Using the CLASSPATH or Other Packaged APIs

 

Using the JAR Utility

 

The Java Class Disassembler

 

Garbage Collection (verbose option)

 

Networking

 

 

 

Java Networking Programming Overview

 

Get Service By Name

 

 

Internet Protocol (IP) Address Example

 

 

Reverse Name Resolution Example

 

 

Client Sockets Example

 

 

Socket Test

 

Daytime Client - Read from Socket

 

Echo Client (One Line) - Read/Write on same Socket

 

 

Server Sockets Example

 

 

HTTP Server

 

 

Uniform Resource Identifier (URI) Examples

 

 

Create URL Objects

 

Parsing a URL Object

 

Convert URI to URL

 

Convert URL to URI

 

Get Text From a URL

 

Get Image From a URL

 

Object-Oriented Techniques

 

 

 

Object-Oriented Techniques

 

Object Equality

 

Printing Objects using toString()

 

Overriding the hashCode() Method

 

Cloning Objects

 

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

 

 

Command line parameters

 

Parameter Passing - Explained

 

Parameter Passing (2) - Explained

 

Properties

 

 

 

Application.properties

 

System Properties

 

Property Files

 

Random Numbers

 

 

 

README.txt (Random Numbers)

 

 

java.lang.Math Class

 

 

Generate raw random numbers

 

Generate random numbers within a given range

 

Generate random numbers within a given range (Using mod)

 

Generate random characters

 

 

java.util.Random Class

 

 

Coming soon...

 

Reflection

 

 

 

Introduction To Using Reflection

 

 

Understanding Class.forName()

 

Reflect Class Example

 

Reflection Demo

 

Regular Expressions

 

 

 

README.txt

 

Regular Expression Demo (Apache)

 

Regular Expression Demo (Sun SDK 1.4)

 

Running OS

 

 

 

Running External OS Commands Overview

 

Running UNIX External OS Commands

 

Security

 

 

Security Manager / Access Controller

 

 

Trace All Debugging Messages

 

 

Java Cryptography Extension

 

 

List All Available Cryptographic Services

 

Generate Public/Private Key Pairs

 

Generate Symmetric Keys

 

Encrypting/Decrypting String using Symmetric Key

 

rot13 Example

 

 

Java Secure Sockets Extension

 

 

Coming soon...

 

 

Java Authentication and Authorization Service

 

 

Coming soon...

 

Serialization

 

 

 

Using serialver

 

Simple (Save / Load) Serialization Example

 

Strings

 

 

 

README.txt

 

Substrings

 

String tokenizer

 

StringBuffer versus String

 

Reverse string (by characters)

 

Reverse string (by words)

 

Accessing a string one character at a time

 

Controlling the case of a string

 

toString Example

 

Beep / Date Example

 

Swing / AWT

 

 

 

Events and Their Associated Listeners

 

Simple AWT Example

 

Exit Application On Frame Close

 

Confirm Exit Dialog

 

FlowLayout Manager

 

BorderLayout Manager

 

CardLayout Manager

 

pack() vs. setSize()

 

Change Pluggable Look and Feel

 

 

Threads

 

 

 

When Is a Thread Considered Active?

 

 

Starting, Stopping and Joining Threads

 

Thread Countdown (extending Thread)

 

Thread Countdown (implement Runnable)

 

Using the isAlive() method

 

Using the join() method

 

Using the join() method - (Another Example)

 

Thread Naming

 

The currentThread() method

 

Enumerating Threads in an Application

 

Parallelism Example

 

XML

 

 

XML / Example Notes

 

 

Example XML and DTD File

 

Example XML and DTD File

 

 

Example CDATA File

 

 

DTD Overview

 

 

DTD Tutorial

 

 

Declaring Zero or One Occurrences of the Same Element

 

 

All about JAXP (by Enhydra Strategist)

 

XML APIs

 

DOM Example (Generic)

 

SAX Example (Generic)

 

Oracle XML Parser Example (DOM)

 

Xerces2 XML Parser Example (DOM)

 

Crimson XML Parser Example (DOM)

 

JAXP Example (Uses default parser - which is Crimson)

 

 

JAXP Example (Using Crimson Parser)

 

 

JAXP Example (Using Xerces Parser)

 

 

JAXP Example (Using Oracle Parser)

 

XML Tree Viewer (SAX)

 

ZIP / GZIP /Checksum

 

 

 

example1.txt

 

 

example2.txt

 

 

example3.txt

 

 

Creating a ZIP File

 

List the Contents of a ZIP File

 

Retrieving all Files from a Zip File

 

Compress File to GZIP Format

 

Uncompressing File in GZIP Format

 

Calculating the Checksum of a File / Adler-32

 

Calculating the Checksum of a File / CRC-32

 


Copyright (c) 1998-2017 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
Monday, 06-May-2013 10:19:15 EDT
Page Count: 37283