Notes and Code:

Class Date Topic
Class Programs
Readings
Class Lectures
1 Jan. 21   Intro to class
2 Jan. 26 Programs from chapter 2 slides: ComputeArea.html, DisplayTime.html, FahrenheitToCelsius.html, SalesTax.html, DisplayUnicode.html, ComputeLoan.html, ComputeChange.html, ShowCurrentTime.html, TestScanner.html
Programs from chapter 3 slides: LeapYear.html, LearnAddition.html, ComputeTaxWithSelectionStatement.html, SubtractionTutor.html, GuessBirthDate.html
Programs from chapter 4 slides: SubtractionTutorLoop.html, SentinelValue.html, TestSum.html, TestMultiplicationTable.html, GreatestCommonDivisor.html, FindSalesAmount.html, PrintPyramid.html, TestBreak.html, TestContinue.html, PrimeNumber.html
Also see corresponding notes and lectures for all three chapters from my Spring 2007 0002 class
Liang Chapter 2
Liang Chapter 3
Liang Chapter 4
3 Jan. 28
4 Feb. 2 TestMax.html, TestPassByValue.html, TestMethodOverloading.html, ComputeTaxWithMethod.html, PrintCalendar.html, PrintCalendarSkeleton.html
Also see corresponding notes and lectures from my Spring 2007 0002 class
Liang Chapter 5
5 Feb. 4 cut and paste from slides
DynamicFibonacci.txt
Recursion
6 Feb. 9 Array1.txt, Array2.txt, Array3.txt, Histogram.txt, RollDie.txt, StudentPoll.txt, TestPassArray.txt, MakeHot.txt, MakeArrayInMethod.txt, TestCopyArray1.txt, TestCopyArray2.txt, TestCopyArray3.txt Arrays 1 (part covered on February 11)
7 Feb. 11 TicTacToe.txt, TestLength.txt, TestMatrixOperation.txt, GradeExam.txt
GameOfLife.txt
Arrays 2
8 Feb. 18 TestCircle.txt, TestSwitch.txt, TestCircleWithConstructors.txt, TimeTest1.txt
ScannerTest1.txt, ScannerTest2.txt
GameOfLifeScanner.txt
Objects & Classes 1
Scanner Class
9 Feb. 23 CircleWithAccessors.txt, TestCircleWithAccessors.txt, CircleWithStaticVariable.txt, TestCircleWithStaticVariable.txt, TestDate.txt Objects & Classes 2
10 Feb. 25
11 Mar. 2 ThisTest.txt, Time2.txt, TimeTest2.txt, Date.txt, Employee.txt, EmployeeTest.txt, TestPassingObject.txt
TestSmallInt.txt, BitShifting.txt
Objects & Classes 3
discussion of binary, hexadecimal and bit shifting
12 Mar. 4 TotalArea.txt Arrays of Objects
13 Mar. 9 TestCalculate1.txt, TestCalculate2.txt, TestLongestBlankInString.txt, TestPlayer.txt, TestReverseString.txt, HourlyEmployee.txt, TestHourlyEmployee.txt, Fifteen1.txt, Fifteen2.txt, Fifteen3.txt  
14 Mar. 11 MIDTERM
Spring Break
15 Mar. 23 GeometricObject.txt, Circle.txt, Rectangle.txt, TestCircleRectangle.txt
Cylinder.txt, TestCircleCylinderRectangle.txt
Inheritance (part covered 3-25)
16 Mar. 25 modifications to programs from previous classes were made in class Inheritance, Object class, Intro to Polymorphism (also arrays of objects review)
17 Mar. 30
18 Apr. 1 Same class hierarchy with equals() methods and test instanceof operator
GeometricObject.txt, Circle.txt, Rectangle.txt, Cylinder.txt, TestCircleCylinderRectangle.txt
TestCircleCylinderRectangle2.txt (try both GeometricObject files), GeometricObject.txt (with abstract methods)
Employee.txt, SalariedEmployee.txt, HourlyEmployee.txt, CommissionEmployee.txt, BasePlusCommissionEmployee.txt, PayrollSystemTest.txt
casting objects and abstract classes
19 Apr. 6 LinearSearch.txt, BinarySearch.txt, SelectionSort.txt, BubbleSort.txt
TestComparableBinarySearch.txt, TestComparableMax.txt, TestObjectEqualsLinearSearch.txt, Tokenizer1.txt, Tokenizer2.txt, Tokenizer3.txt, TestDatabase.txt
Sort and Search
interfaces
20 Apr. 8
21 Apr. 13
22 Apr. 15 HandleExceptionDemo.txt, CircleWithException.txt, TestCircleWithException.txt, CircleWithRadiusException.txt, InvalidRadiusException.txt, TestCircleWithInvalidRadiusException.txt
WelcomeApplet.txt, WelcomeApplet2.txt, WelcomeApplet3.txt, AppletJOptionPane.txt, DrawRectangle.txt, SolidRectangle.txt, MovingRectangle.txt, SlowMovingRectangle.txt, SlowMovingRectangle2.txt
Exception Handling
applets
23 Apr. 20 MyFrame.html, MyFrameWithComponents.html, ShowFlowLayout.html, ShowGridLayout.html, ShowBorderLayout.html, TestPanels.html, TestSwingCommonFeatures.html, TestImageIcon.html Liang chapter 13 GUIBasics
24 Apr. 22 TestGetGraphics.html, TestPaintComponent.html, TestPanelDrawing.html, FigurePanel.html, TestFigurePanel.html, DrawArcs.html, DrawPolygon.html, TestCenterMessage.html, MessagePanel.html, TestMessagePanel.html, StillClock.html, DisplayClock.html, DisplayImage.html, SixFlags.html, ImageViewer.html Liang chapter 14 Graphics
25 Apr. 27 HandleEvent.html, SimpleEventDemo.html, ShowInnerClass.html, SimpleEventDemoInnerClass.html, AnonymousListenerDemo.html, ControlBall.html, TestWindowEvent.html, TestMultipleListener.html, AdapterDemo.html, MoveMessageDemo.html, KeyEventDemo.html, AnimationDemo.html, ClockAnimation.html Liang chapter 15 EventDrivenProgramming
26 Apr. 29 Chapter 16:
images directory, TestButtonIcons.html, ButtonDemo.html, CheckBoxDemo.html, RadioButtonDemo.html, TextFieldDemo.html, DescriptionPanel.html, TextAreaDemo.html, ComboBoxDemo.html, ListDemo.html, ScrollBarDemo.html, SliderDemo.html, MultipleWindowsDemo.html, Histogram.html, ButtonColors.txt, TestButtons2.txt
Review:
String.txt (from the Java API), MyString.txt, TestMyString.txt Cipher.txt, TestMagicSquare.txt, Minesweep.txt
Liang chapter 16 CreatingUserInterface
27 May 4 (solution using only stuff from this class - still not modular) Person.txt, Employee.txt, Student.txt, Staff.txt, Faculty.txt, TestPerson.txt
(solution using some concepts we have not covered but can understand - this is more modular - can still be improved) Person.txt, Employee.txt, Student.txt, Staff.txt, Faculty.txt, TestPerson.txt
Building.txt, AcademicBuilding.txt, ResidentialBuilding.txt, EmployeeHousing.txt, Dormitory.txt
Final Exam