Examples

Some Java 2 Data Structures Interfaces

Examples from Programming One

Person.java For an example of javadoc output see Person.html

Example2A.java Example2B.java

Example3.java Example3A.java

Example4.java Example4A.java people.data

Example5.java Example5A.java



This is an Inheritance Example

TestEmployees.java

 

This is an example using a combination of the decorator pattern with inheritance

TestCoffeeShop1

CoffeeShop1

DrinkItem Coffee Tea Decorator Cream Sugar Lemon

 This is the CoffeeShop example with "generic" classes

TestCoffeeShop2

CoffeeShop2

DrinkItem Drink Decorator Addition


 ExceptionsExample.java