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

CS 111: Introduction to Computer Science, Summer 2005
Info and Announcements Course Description Books & Software Assignments and Labs Examples

Please report broken links to azs@bu.edu
Class meeting Concept Examples from class
Wed 25 May General Java syntax, Standard output
Variables, data types
ShellApplication.java
DataType.java
Thu 26 May Variables, data types
Arithmetic
Standard input
ExporingDataTypes.java
Arithmetic.java
Calculator.java
Tue 31 May Using pre-defined classes, creating instance of objects, using references.
Creating references to Strings, swapping references.
CreatingObjects.java
ObjectReferences.java
Wed 1 June Using constructors.
Mutator and Accessor methods.
CreatingRectangle.java
Thu 2 June using the String class, methods on it.
StringExample.java
Fri 3 June Using the graphics API -- boiler plate code to get us started.
Drawing_starter.java
Drawing.java (the drawing I did in class)
CalendarExample.java
Mon 6 June Expressions, selection using if statements.
Expressions.java
SelectionExample.java
FindSmallest.java
Tue 7 June Comparing floating point numbers, objects (e.g. Strings),
and using the switch statement.
SelectionExample2.java
SelectionExample3.java
SwitchExample.java
Wed 8 June Repetition using while loops.
Sentinel-controlled repetition.
Counter-controlled repetition.
Using repetition to create animation.
RepetitionExample.java
RepetitionExample2.java
RepetitionExample3.java
ReadingFromFile.java
RepetitionExample4.java
BouncingBall.java [the starter code]
BouncingBall.java [my solution]
Thu 9 June Repetition using do-while loops.
For loops.
RepetitionExample5.java
RepetitionExample6.java
RepetitionExample7.java
Mon 13 June User-defined classes, instance variables, constructors, methods BankAccount.java
Tue 14 June Parameter passing
Methods: accessor, mutator, data manipulation, etc.
Graphical classes
ParameterPassing.java
BankAccount.java
Circle.java
DrawingCircle.java
Wed 15 June Graphical classes
toString, equals methods.
static member variables
Circle.java
DrawingCircle.java
Pause.java (used for animating)
Thu 16 June Graphical classes
toString, equals methods.
static member variables
IntroducingArrays.java
Mon 20 June Arrays of objects
Circle.java (complete, ready to use)
Pause.java (our helper class for pausing the animation)
DrawingCircle2.java [starter code]
DrawingCircle2.java [my solution]

MoreArrays.java
ArrayofStrings.java
Tue 21 June Multidimensional Arrays
MultiDimensionArray.java
DrawingColorArray.java
ColorPicker.java [my solution to color array exercise]
Wed 22 June Inheritance, class hierarchies
PlayingGames.java
Thu 23 June Polymorphism
PlayingGames.java [updated with polymorphism]

Racer.java
Pause.java
Tortoise.java
Hare.java
RacePoly.java
Mon 27 June Exceptions and File I/O
PlayingWithFire.java [exceptions]
WorkingWithFiles.java [file I/O]
Mon 27 June Exceptions and call stack
ThrowingExceptions.java



Created by: Aaron Stevens, azs@bu.edu
people.bu.edu/azs/academics/cs111/
Last update: 28 June 2005