CSSE 220 Day 3
Unit Tests and Object References
Implementing Classes in Java, using
Documented Stubs, Test-First Programming
Check out UnitTesting and
WordGames from SVN
What Questions Do You Have?
Things discussed in
Intro to Java Graphics
Check out IntroToJavaGraphics and BiggestFan projects from SVN
Exam 1 Starts Tuesday the 20th
Were splitting the exam into written and
programming and doing them on separate days
Before Fridays class
A Software Engineering Technique:
Download FirstOODesignPractice from
Part 1 of Many
Also Class Diagrams
Programs typically begin as abstract ideas
These ideas form a set of requirements (i.e.
what the user wants)
We must take these r
Linked Lists Part 2
Linked List Implementation
Checkout SinglyLinkedList project from SVN (Homework)
Lets modify our simple linked list to
take arbitrary objects!
What if we j
Welcome to CSSE 220
We are excited that you are here:
Start your computer
Pick up a quiz from the back table
Answer the first two questions
Starting with Java
CSSE 220Object-Oriented Software Development
Rose-Hulman Institute of T
2D Arrays and Maps
Check out 2DArraysAndMapsInClass from SVN
2D Arrays What, When, Why, How?
Think of them as an array of arrays
or as a grid with rows & columns
Represent 2 dimensional data
Multiple lists of ite
Check out SuperSimpleObjects and TeamGradebook from SVN
Plan for today
Introduce how to write your own classes
Talk about object references and box and
Get started on TeamGradebook, your new
CSSE 220 Day 8
Wrapper Classes, Auto-boxing,
Enhanced for loop
Check out ArraysAndLists from SVN
Exam 1 is October 1, 7-9 PM!
Over chapters 1-7
You'll have a chance to ask questions about
anything in next Tuesday's class.
Game of Life work time
No in-class quiz today
Follow the TODOs. Test as frequently as practical.
If a part is hard, break it down into sub-parts and test each
sub-part as you go.
There are at least 3 clever ways to avoid cluttering
code that references c
Software Engineering Techniques
Check out TwoDArrays from SVN
public class TicTacToe cfw_
private final int rows;
private final int columns;
private String board;
* Constructs a 3x3 TicTacToe board with all s
Exam on October 2, 2012
Section 1: O259;
Topics from Chapters 1-7 and 13
Review in class today
What questions did you bring?
What topics would you like to review?
I didnt prepare anything but Im happy to cover whatever you want
Iteration and Debugging
Check out Iteration from SVN
Debugging Java programs using Eclipse
If you had trouble with Arc2D
on Faces, take a look at
ArcDrawer.java after class.
While loop syntax:
Same as C
CSSE 220m0bject—Oriented Software Development
Exam 1 — Part 1, Sept. 23, 2014
This exam consists of two parts. Part 1 is to be solved on these pages. If you need more space,
please ask your instructor for blank paper. After you ﬁnish Part 1