Sample code referenced elsewhere in the course. The projects below are small, standalone examples meant to be downloaded and opened in an IDE, not run from the browser.
Projects:
- dblcounter – JavaFX counters that don’t quite add up, illustrating the effects of unprotected shared state
- ice_cream – the Decorator pattern applied to ice cream confections
- old-threading – synchronizing multiple threads
- phonebook – a JavaFX phonebook application
- rmi – a counter service accessed over Java RMI
- singleton – an event logger implemented as a Singleton
- tictactoe – a tic-tac-toe client and RMI service
- uml-sample – the “Senditnow” domain model used in UML standards
- week1-stero – a stereo equalizer class hierarchy (illustrative only, not runnable)
Single-file examples:
- Count2000.java – two unsynchronized threads incrementing a shared counter
- CountLines.java – reading a file until end-of-file
- PrimeApp.java – computing primes on a background thread while updating a GUI
- SimpleLinkedList.java – a minimal generic linked list
- TestReflection.java – inspecting a class’s fields via reflection
- WriteToFile.java – writing text to ThisFile.txt