Programming Examples

(See also the in-class notes and examples for IT 101, CS 102, or for CS 109)

Many online examples are can be retrieved with your browser using a system called CFX. It allows you to search by keyword and has an expandable outline. Select the language to use in the upper-left corner of the expandable outline. You can also suggest new examples that are needed if you don't find what you are looking for. CFX works best with Internet Explorer. Browse the directory of examples if using a non-IE based browser.

Java

See browsable CFX examples using Flash.
Alternatively:

Textbook links:

Java: An Introduction to Problem Solving & Programming, 4th ed., Walter Savitch. See local copy of text examples. See also link to the first 3 chapters as pdf files.
Java textbook examples from the Savitch Absolute Java book. Also see the book's CodeMate site (login required)
Java textbook examples for the Barnes & Kolling BlueJ book

C++

USE the IE browser to see some CFX examples.
Browse the non-database version of CFX (IE required)
Browse the directory of some C/C++ examples (not browser dependant). (also see a directory of older examples)
Download the non-database version as a zip file (939K).

Textbook links:

See a local copy of the Savitch Absolute C++ text book examples


[CS Dept] [UIC] [Prof. Reed]