CSCI 1321 (Principles of Algorithm Design II):
Sample Programs
Disclaimer: Code linked from this page is intended as a
cleaned-up and commented version of examples from class.
Many programs and classes could be further improved with
regard to functionality or design, but then they would
no longer be as close to what we did in class.
A note about source code:
Some browsers apparently do not display Java source code correctly
("flowing" it into one big paragraph).
It's not clear that this is easily fixed, but
a workaround is to use the
browser's "save" function to save it to a local file and look at
it there.
- Simple first program (9/04):
- Bank account example, simple one-class version (9/09):
- Bank account example, simple multi-class version (9/11):
- Bank account example, multi-class version with interface (9/16):
- String example (9/18):
- Sorting and searching examples (9/23, 9/25):
- Assorted threads examples (10/07):
- Array-based stacks and queues (10/16):
- Vector-based list with iterator (10/30):
- Simple GUI examples (11/06 and 11/11, improved and with some extras):
- Graphics library classes (11/13):
- I/O (12/02):
- Networking (12/04):
- RMI (??):