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

CS 111: Introduction to Computer Science, Summer 2006
Contact Info Course Description Books & Software Labs Assignments Examples

Please report broken links to azs@bu.edu
Class meeting Concept Examples from class
Thu 6 July General Java syntax, Standard output
HelloWorld.java
Mon 10 July Standard output
Variables, data types, constants
Assignment statements
Arithmetic
StandardOutput.java
DataTypesAndVariables.java
Arithmetic.java
Tue 11 July Casting
Using pre-defined classes, calling methods.
Math and Scanner class
FunWithCasts.java
HigherMath.java
ReadingFromKeyboard.java
Wed 12 July Introduction to Graphics (coordinates, drawing, basic Colors)
Calling methods
Passing arguments to method calls
Drawing.java [some code to get us started]
Drawing.java (the drawing I did in class)
Thu 25 May Object reference variables.
Object creation using new.
Using constructors.
String object references
UsingDate.java
UsingString.java
Mon 17 July Accessor and Mutator methods.
Static methods, static member data.
Factory methods for object creation.
UsingRectangle.java
CallingStaticMethods.java
FactoryMethods.java
Tue 18 July Expressions, selection using if statements.
Expressions.java
SelectionExample.java
GameOfCraps.java
MinOf3Ints.java
Wed 19 July Selection: continued
Comparing floating point numbers,
comparing objects (e.g. String),
Switch statements
ComparingFloatingPoint.java
ComparingObjects.java
SelectionUsingSwitch.java
Thu 20 July Repetition using while loops.
Sentinel-controlled repetition.
Counter-controlled repetition.
SentinelControlledLoop.java
YesOrNo.java
ReadingFromFile.java
CounterControlledLoops.java
Mon 24 July Repetition using do-while loops.
Repetition using for loops
Compound interest example
YesOrNo.java [updated with do-while loop]
RepetitionUsingFor.java
CompoundInterest.java
Tue 25 July User-defined classes, member variables, methods BankAccount.java
Circle.java
UsingCircle.java
Wed 26 July User-defined classes: constructors, methods
Constant class member data (static & final keywords)
Parameter passing and return values
DrawingCircle.java [some starter code]
Pause.java [to pause the animation]
Circle.java
DrawingCircle.java [my screen saver]
Thu 27 July User-defined classes:
toString, equals methods
Circle.java
UsingCircle.java
Mon 31 July Introducing arrays
Array indicies, operations.
IntroducingArrays.java
ArrayInitializerList.java
ArrayOperations.java
Calculator04.java
Tue 1 August
Review of arrays, lab08 revisited
Copying arrays, shallow vs deep copy
Arrays of Objects
Vector.java
VectorTester.java
MoreArrays.java
DrawingCircle.java
Wed 2 August
Introducing Multidimensional Arrays
ColorPicker.java [some starter code]
TempPerHour.java
MultiDimArrayInitializerList.java
ColorPicker.java [my implementation]
Thu 3 August Inheritance, class hierarchies
Constructor chaining, overridden methods
PlayingGames.java
Mon 7 August Access-modifiers revisted (public, protected, private)
Polymorphism
Abstract classes and methods
AnimalFarm.java
Tue 8 August Interfaces
AnimalFarmTheSequel.java
Wed 9 August Exceptions, handling in try-catch
File Input/Output
PlayingWithFire.java
HandlingMultipleExceptions.java
ReadingFromFile.java
WritingToFile.java



Created by: Aaron Stevens, azs@bu.edu
http://www.cs.bu.edu/courses/cs111
Last update: 9 August 2006