Small, standalone examples meant to be run locally.
UML Example: illustrates basic UML notation and contains the “Senditnow” domain model used in UML standards
Java programming examples
- CountLines.java: reading a file until end-of-file
- SimpleLinkedList.java: a minimal generic linked list
- TestReflection.java: inspecting a class’s fields via reflection
- WriteToFile.java: writing text toe ThisFile.txt
- phonebook: a JavaFX phonebook application
Pattern examples
Many of these are referenced in the notes.
- week1-stero: Illustrates the NULL-object Pattern using a stero equalizer; this example is not runable
- ice_cream: the Decorator pattern applied to ice cream confections
- Weather Station: a complete project illustrating using the Observer Pattern on a weather station. See the Readme file for credits.
- singleton: an event logger implemented as a Singleton
Projects illustrating threads and concurrency
- old-threading: synchronizing multiple threads
- PrimeApp.java: computing primes on a background thread while updating a GUI
- Count2000.java: two unsynchronized threads incrementing a shared counter
- dblcounter: JavaFX counters that don’t quite add up, illustrating the effects of unprotected shared state
Remote method invokation (RMI) projects
These are available for discussion, but not required material.