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 6 July General Java syntax, Standard output
Variables, data types
HelloWorld.java
DataTypes.java
Thu 7 July Variables, data types
Arithmetic
Standard input
AssignmentStatements.java
Arithmetic.java
ReadingFromKeyboard.java
Mon 11 July Using pre-defined classes, creating instance of objects, using references.
Creating references to Strings, calling methods.
ObjectReferences.java
ObjectReferences2.java
Tue 12 July Review of object instantiation.
Using constructors.
Mutator and Accessor methods.
WorkingWithObjects.java
UsingRectangle.java
Wed 13 July Static methods, static member data.
Practice using DecimalFormat class.
UsingStatic.java
UsingDecimalFormat.java
Thu 14 July Using the Java Graphics library.
Drawing.java [some code to get us started]
Drawing.java (the drawing I did in class)
Mon 18 July Expressions, selection using if statements.
Expressions.java
SelectionExample.java
FindSmallest.java
Tue 19 July Comparing floating point numbers,
comparing objects (e.g. Rectangles),
and using the switch statement.
ComparingDoubles.java
ComparingObjects.java
SwitchExample.java
Wed 20 July Repetition using while loops.
Sentinel-controlled repetition.
Counter-controlled repetition.
Using repetition to create animation.
SentinelControlledLoop.java
YesOrNo.java
ReadFromFile.java
ReadingFromFile.java
CounterControlledLoop.java
Pause.java [to pause the animation]
BouncingBall.java [the starter code]
BouncingBall.java [my solution]
Thu 21 July Repetition using do-while loops.
For loops.
YesOrNo.java
Counting.java
Mon 25 July User-defined classes, instance variables, constructors, methods BankAccount.java
UsingBankAccount.java
Tue 26 July Review of: creating a class, member data, constructors, methods.
Methods: accessors, mutators, toString, equals.
Car.java
DrivingCars.java
Wed 27 July Enumerated types
User-defined graphical classes
static member data/constants
Temperature.java
DrawingCircle.java [some starter code]
Pause.java [to pause the animation]
Circle.java [my solution]
DrawingCircle.java [my solution]
Thu 28 July Introducing arrays, arrays of primitives.
Array indicies, operations.
Passing arrays to method calls.
UsingArrays.java
Statistics.java
Mon 1 August Copying arrays
Arrays of objects
Sorting
MoreArrays.java
ArrayOfObjects.java

Circle.java [complete, ready to use]
Pause.java [to pause the animation]
DrawingCircle2.java [starter code]
DrawingCircle2.java [my solution]
Tue 2 August Multidimensional Arrays
MultiDimArrays.java

DrawingColorArray.java
ColorPicker.java [my solution to color array exercise]
Wed 3 August Inheritance, class hierarchies
PlayingGames.java
Thu 4 August Polymorphism
AnimalFarm.java
Racer.java
Pause.java
Tortoise.java
Hare.java
RacePoly.java
Mon 27 June Exceptions and File I/O
PlayingWithFire.java [exceptions]
ReadingFromFile.java [file I/O]
Tuesday 9 August Generating (throwing) Exceptions
ThrowingExceptions.java
WritingFiles.java



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