Computer Science 2
The main CS2 webpage is at
This webpage contains information and supplemental material specific to our section.
Instructor: Ivona Bezakova,   email:  here.
Class meets: Mo/Tu 8-10am, room 70-ICL5
Office hours: Mo 3-5pm, Tu 10am-12pm, office
The final will be held on Wednesday, Febuary 28th, 2007, 10:15am-12:15pm in
room 01-3335 (notice the building number, it is building #1, NOT #70 where
we met for the classes).
There will be two final review sessions, both on Monday, Feb 26th: 2:30 - 4:00pm in 70-2455 and
4:00 - 6:00pm in 70-2455. If you cannot attend any of the review sessions, check
I prepared a list of topics to review and focus on for the final - follow this link.
Final submission of
project 2 is
due Friday, February 23rd, 2007, 11:59pm. You also have the option to submit
the project late, by Saturday, February 24th, 2007, 11:59pm - if you do, your
final score will be reduced by 10 points.
Exam 2 will be held in class on 02/06/06. It will cover
material and labs from the first seven weeks, with emphasis on weeks 4-7.
Project 2 will be posted soon. Do not wait until last minute to work on it!
Final submission of the project 1 is due Sunday,
January 21st, 2007, 11:59pm.
Do not wait until last minute to submit, the
submission system might be very slow due to all sections submitting at the
same time and you might not make it before the deadline! Submit early and then
resubmit as you improve your code.
Minimal submission for the project 1 due
Friday, December 22nd, 2006.
Exam 1 will be held in class on 01/09/06. It will cover
material and labs from the first three weeks.
The intellectual property slides (in ppt): a link to the main CS2 webpage
Our section's final review notes
Networking notes (in ppt)
Reading material: Chapter 25 (networking).
(checking if a button has been clicked),
(counts number of clicks using a private listener - example of a private
(counts number of clicks using an anonymous listener).
Reading material: Chapter 14 (listeners / event handling).
MyFrameWithComponents.java (adding a single component onto a frame),
TestPanels.java (the microwave example.
MapExample.java (listing elements from a map),
Deadlock.java (deadlock of two threads),
MyFrame.java (opens a frame),
TestPanelDrawing.java (adds a panel to a frame, draws on the panel with overriden paintComponent() method).
Reading material: Chapters 12 and 13 (GUI and graphics).
Reading material: Chapter 24 (Multithreading), more specifically 24.1-4, 24.9
(this webpage provides code samples which do not use executor), 24.11 (mostly
24.11.1, you do not have to know the `locks', see code above), 24.12 and
Reading material: Chapter 21 (Generics, you may skip the optional
Weeks 3 and 4:
Reading material: Chapter 17 (Exceptions, you may skip the optional
subsections), Sections 8.7-8 (text files, also check Lab4), Section
18.1-4 (binary files).
Week 2, Tuesday:
Reading material: Section 10.4 - Interfaces, Sections 17.1, 17.2 - Introduction
to exception handling.
Week 1 and Monday of week 2:
GeometricObject.java (abstract class),
Reading material: Chapter 9 - Inheritance
(you may skip 9.10 and the optional sections),
Sections 10.1, 10.2 - Abstract classes and methods.
Instructor notes from other sections
A disclaimer: the topics covered in our section might slightly deviate
from other sections.