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

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

Please report broken links to
Class meeting Concept Examples from class
Thu 19 January General Java syntax, Standard output
Tue 24 January Standard output
Variables, data types
Assignment statements
Thu 26 January Review Data Types, Constants
Arithmetic, some higher math
Tue 31 January Using pre-defined classes, calling methods.
Math, Scanner classes
Standard input
Thu 2 February 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 7 February Object reference variables.
Object creation using new.
Using constructors.
More Graphics: creating custom Colors.
String object references (briefly) [updated]
Thu 9 February String class
Accessor and Mutator methods.
Static methods, static member data.
Factory methods for object creation.
Tue 14 February Expressions, selection using if statements.
Thu 16 February Selection: continued
Comparing floating point numbers,
comparing objects (e.g. String),
Thu 23 February Switch statements
Repetition using while loops.
Sentinel-controlled repetition.
Tue 28 February Using a loop to read from a file. Counter-controlled repetition.
Thu 2 March Do-while loops
Additional for-loop example
Tue 14 March User-defined classes, member variables
Thu 16 March User-defined classes: constructors, methods [some starter code] [to pause the animation] [my screen saver]
Tue 21 March User-defined classes:
toString, equals methods,
static & final keywords
enumerated types
Thu 23 March Java Collections: Vector, Iterator
adding elements, removing elements
visiting each element using Iterator Alex's example My example from last fall
Tue 28 March Java Collections: Vector, TreeSet
adding elements, removing elements
visiting each element using Iterator
BONUS Alex didn't have time to cover this,
but here's an example so you can see
the map in action.
adding elements, removing elements
visiting each element using Iterator My example from last fall.
Tue 4 April Basic GUI, buttons, events, text area.
Thu 6 April GUI: Selection
- use of JCheckBox, JRadioButton, JButtonGroup, JComboBox
Tue 11 April GUI: Multiple windows
- concept of modality
- custom dialogs (inherit from JDialog)
- "callback" model for communicating between master and slave windows
Tue 18 April Databases and JDBC
- database concepts (tables, fields)
- basic SQL queries
- walkthrough of code using JDBC
baseball.mdb [example Access database]
sample_queries.txt [sample SQL queries] [a helper class] [examples w/SQL]
Thu 20 April Databases and JDBC
- Database design
- JavaBeans
- Middleware
baseball.mdb [example Access database] [some middleware]

Created by: Aaron Stevens,
Last update: 20 April 2006