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

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

Please report broken links to
Class meeting Concept Examples from class
Thu 7 September General Java program syntax, Standard output
Tue 12 September Standard output
Variables, data types
Assignment statements
Thu 14 September String data type
Tue 19 September Using pre-defined classes, calling methods.
Standard input
Math, Scanner classes
Thu 21 September Object reference variables.
Object creation using new.
Calling methods and passing arguments
Introduction to Graphics (coordinates, drawing, basic Colors) [some code to get us started] (the drawing I did in class)
Tue 26 September Object creationg (revisited), using constructors.
Factory methods for object creation
Mutator/Accessor methods
Return types
Thu 28 September String class, methods
Expressions, selection using if statements.
Tue 3 October Selection: continued
Comparing floating point numbers,
comparing objects (e.g. String),
Thu 5 October Repetition using while loops and do-while loops.
Sentinel-controlled repetition.
Thu 12 October Counter-controlled repetition.
Using for loops
Tue 17 October User-defined classes,
member variables, constructors
methods (mutator and accessor)
Thu 19 October User-defined classes: review constructors, methods
toString method [some starter code] [my drawing code] [update]
Tue 24 October User-defined classes:
toString, equals methods,
returning multiple elements from a method
static & final keywords [update] [update]
Thu 26 October Java Collections: Vector, Iterator
adding elements, removing elements
the for...each loop
Tue 31 October More Java Collections: TreeSet, TreeMap
Thu 2 November JDBC, databases, queries
baseball.mdb example database
ExampleQueries.txt examples from class helper class starter code example from class
Tue 7 November Databases and JDBC
- Queries using java variables
- Program structure for interacting with database
Thu 9 November Basic GUI, buttons, events, text area.
Tue 14 November GUI: Selection
- use of JCheckBox, JRadioButton, JButtonGroup, JComboBox
Thu 16 November GUI: Popup Windows and Lists
- concept of modality
- using JOptionPane
- using JList
Tue 28 November GUI: Custom Dialogs (inherit from JDialog)
- parent/child windows
- using methods to get results from a dialog
Thu 30 November GUI: "callback" model for communicating between master and slave windows

Created by: Aaron Stevens,
Last update: 30 November 2006