Computer Science 2

The main CS2 webpage is at    http://www.cs.rit.edu/~vcss232/.

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 70-3645
Webpage:   http://www.cs.rit.edu/~ib/Classes/CS2_Winter06-07/


Announcements


Class materials

Week 10:
The intellectual property slides (in ppt): a
link to the main CS2 webpage
Our section's final review notes

Week 9: Networking notes (in ppt)
Client.java, Server.java, IdentifyHostNameIP.java.
Reading material: Chapter 25 (networking).

Week 8: SimpleEventDemo.java (checking if a button has been clicked), MoveMessageDemo.java (mouse events),
SimpleEventDemoPrivate.java (counts number of clicks using a private listener - example of a private class), SimpleEventDemoAnonymous.java (counts number of clicks using an anonymous listener).
Reading material: Chapter 14 (listeners / event handling).

Week 7: MyFrameWithComponents.java (adding a single component onto a frame), ShowFlowLayout.java, ShowGridLayout.java, ShowBorderLayout.java, 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).

Week 6: TaskThreadDemo.java, AccountWithoutSync.java, AccountWithSync.java, AccountMonitor.java, ProducerConsumer.java,
newly added SynchronizedMethods.java.
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 24.15.

Week 5: ArrayListExample1.java, ArrayListExample2.java, GenericMethodDemo.java, GenericMethodDemo2.java, GenericClassDemo2.java, GenericClassDemo2.java.
Reading material: Chapter 21 (Generics, you may skip the optional subsections)

Weeks 3 and 4: TestException.java, TestDataStream.java, TestObjectOutputStream.java
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: GeometricObject.java, PrintObject.java (interface), TestGeomObj2.java (exceptions)
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), Square.java, TestGeomObj2.java
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.