CS202 Java Object Oriented Programming
Summer 2004
Lectures
TR 08:30am - 10:10am
Lab
TR 10:10am - 11:25am
Room
E&T A220
Instructor
Chengyu Sun
,
csun@calstatela.edu
Office Hours
MTR 2-4pm or by appointment, in E&T A317
Announcements
FINAL will be from 8:00am to 10:30am on Tuesday, August 31 in E&T A220
.
MIDTERM will be from 8:45am to 11:15am on Thursday, July 22 in E&T A220
.
Lecture Notes
Assignments
Syllabus
Review of Language Basics (ppt)
(pdf)
Introduction to Classes and Objects (ppt)
(pdf)
Encapsulation, Inheritance, and Polymorphism (ppt)
(pdf)
Advanced OOP Topics (ppt)
(pdf)
Command Line Parameters and File I/O (ppt)
(pdf)
Errors and Exception Handling (ppt)
(pdf)
Strings, Characters, and Wrapper Classes (ppt)
(pdf)
Common Utility Classes and Methods (ppt)
(pdf)
GUI Programming - Introduction (ppt)
(pdf)
GUI Programming - Color and Drawing Methods (ppt)
(pdf)
GUI Programming - Event Handling (ppt)
(pdf)
GUI Programming - More GUI Components (ppt)
(pdf)
GUI Programming - Applets (ppt)
(pdf)
GUI Programming - Introduction to Java2D (ppt)
(pdf)
New Language Features in Java 1.5 (ppt)
(pdf)
Lab 1
Lab 2
Lab 3
Lab 4
Lab 5
Lab 6
Lab 7
Lab 8
Lab 9
Homework 1
Due: Thursday, July 1
Homework 2
Due: Thursday, July 8
Homework 3
Due: Thursday, July 15
Homework 4
MIDTERM
Project 1. Maze
Due: Thursday, August 5
Project 2. TicTacToe
Due: Thursday, August 12
Project 3. CSPaint
Due: Thursday, August 26
FINAL
Sample Code and Other Course Materials
Solutions
Code Convention for Java Programming Language
Grades.java
ConsoleReader.java
,
ConsoleReaderTest.java
SearchAndSort.java
Account.java
CheckingAccount.java
,
SavingsAccount.java
,
CDAccount.java
StringTest.java
StdInput.java
,
ReadFile.java
,
WriteFile.java
LessThanOneException.java
,
ExceptionTest.java
AnythingComparable.java
,
SomethingComparable.java
,
GeneralSort.java
ArrayWrapper.java
EmptyFrame.java
,
PButton.java
,
PaintBoard.java
,
PaintBoard2D.java
EventDemo.java
JEdit.java
,
Calc.java
WelcomeApplet.html
,
WelcomeApplet.java
Example1_5.java
,
test.txt
Homework 1
Homework 2
Homework 3
MIDTERM
FINAL