Computer Science 212 (Object-Oriented Programming in Java) Fall 2019
- Course grades have been added to CUNYfirst, 12-21-2019.
-
Syllabus
-
The Midterms will be in class on
Thursday 10-03-19 and Tuesday 11-26-19.
-
The final exam will be
on Tuesday 12-17-19 from 8.30am to 10.30am.
-
The final exam will be in the library in room Ro 230. Please note the the change
of room.
- No make up exams will be given. If you miss a midterm, your final exam score will be used in its place.
If you miss the final you will get a WU for the course, or only in the case of good, sufficient and unforeseen reasons you might qualify for an incomplete grade for the course.
Remember to bring ID to the exams. IDs may be checked in all exams.
-
Departmental tutors are available in SB A135-G.
They can help students with all aspects of CS212.
-
Information about the mars/venus computer system.
- Planned class topics and links to code from class (subject to minor change):
- 08-27-19
Java programs: class, main, output, arithmetic, loops, decisions.
Code
- 08-29-19
Arrays, (static) functions.
Code
- 09-03-19
Classes define Objects and their methods and data.
Examples with input/output classes Scanner, File, PrintWriter.
Code
- 09-10-19
The class String.
Code
- 09-12-19
The class ArrayList, Wrapper classes.
Code
- 09-17-19
Writing classes, instance variable, methods, constructors,
getters and setters.
Code
- 09-19-19
Object semantics: How do = and == work with primitive data and
with objects? References and aliases. Methods equals() and toString().
Code
- 09-24-19
The static keyword.
Code
- 09-26-19
Catch up and review.
- Practice questions for Midterm 1.
- 10-03-19
Midterm Exam 1.
Solutions for Midterm 1.
- 10-10-19
Object oriented programming and design.
Code
- 10-15-19
Example with interacting objects.
Code
- 10-17-19
Inheritance. The class JFrame.
Code
- 10-22-19
Swing classes: JFrame, JLabel, Container, WindowAdapter, Color.
Code
- 10-24-19
Polymorphism. Overriding and overloading. Abstract classes and interfaces. The interface ActionListener.
Code
- 10-29-19
Swing guis: Layouts, Panels and Labels.
Code
- 10-31-19
Swing guis: Text fields and Text areas.
Code
- 11-05-19
Swing guis: Icons, Scroll Bars, Borders.
Code
- 11-07-19
GUIs that apply Graphics.
Code
- 11-12-19
Exceptions.
Code
- 11-14-19
Exceptions.
Linked Lists.
Code
- 11-19-19
Linked Lists.
Code
- 11-21-19
Catch up, review
- Practice questions for Midterm 2 and the final.
- Code for first 2 practice problems.
- Summary of swing and awt classes needed for Midterm 2.
- 11-26-19
Midterm Exam 2.
The second midterm will be in the library in room Ro 230.
Please note the change of room.
Solutions for Midterm 2.
- 12-03-19
Stacks and Queues.
Code
- 12-05-19
Generics
Code
- 12-10-19
Iterators, for each loops.
Code
- 12-12-19
Multithreading
Code
- 12-17-19
Final Exam 08.30am-10.30am.
The final exam will be in the library in room Ro 230.
Please note the change of room and make sure to come to the right room.
Solutions.