Boston University Seal Boston University
College of Arts and Sciences
Computer Science Department

CS108: Introduction to Application Programming, Fall 2005
Contact Info Course Description Books & Software Labs Assignments Examples

Please report broken links to
Class meeting Concept Examples from class
Thu 9 Sept General Java syntax, Standard output
Tue 13 Sept Standard output
Variables, data types
Assignment statements
Thu 15 Sept Review Data Types, Constants
Arithmetic, some higher math
Tue 20 Sept Using pre-defined classes, calling methods.
Standard input
Thu 22 September Introduction to Graphics (coordinates, drawing, basic Colors)
Calling methods
Passing arguments to method calls [some code to get us started] (the drawing I did in class)
Tue 27 Sept Object reference variables.
Object creation.
Using constructors.
More Graphics: creating custom Colors. [updated]
Thu 29 Sept Accessor and Mutator methods.
Static methods, static member data.
Factory methods for object creation.
Wrapper classes and autoboxing (briefly)
Tue 4 Oct Expressions, selection using if statements.
I missed this class, so these examples are from my summer CS111 class.
Thu 6 Oct Selection: nested if/else statements
Comparing floating point numbers,
comparing objects (e.g. Rectangles),
and using the switch statement.
Tue 11 Oct Repetition using while loops.
Sentinel-controlled repetition.
Counter-controlled repetition.
Thu 13 Oct Repetition using do-while loops.
For loops.
Using repetition to create animation.
I missed this class, so these examples are from my summer CS111 class. [to pause the animation] [the starter code] [my solution]
Tue 18 Oct User-defined classes, member variables
Thu 20 Oct User-defined classes: constructors, methods [some starter code] [to pause the animation] [my screen saver]
Tue 25 Oct User-defined classes:
accessor and mutator methods,
parameter passing, return values
Thu 27 Oct User-defined classes:
UML diagrams, reviewed data composition,
constructors, methods, toString, equals
Tue 1 Nov Java Collections: Vector, Iterator
adding elements, removing elements
visiting each element using Iterator
Thu 3 Nov Java Collections: TreeMap
adding elements, removing elements
visiting each element using Iterator
Tue 8 Nov No in-class examples, refer to lab 9.
Thu 10 Nov GUI: Selection
- use of JCheckBox, JRadioButton, JButtonGroup, JComboBox
Drawing random groups
Tue 15 Nov GUI: Multiple windows
- use of JOptionPane for pre-made dialogs
- concept of modality
- custom dialogs (inherit from JDialog)
- "callback" model for communicating between master and slave windows
Tue 29 Nov Databases and JDBC
- database concepts (tables, fields)
- basic SQL queries
- walkthrough of code using JDBC
baseball.mdb [example Access database] [a helper class] [examples w/SQL]
Thu 1 Dec Databases and JDBC
- Database design
- JavaBeans
- Middleware
baseball.mdb [example Access database] [some middleware]

Created by: Aaron Stevens,
Last update: 1 December 2005