Docsity

Programming Assignment 2 - Introduction to Computer Science II | COMPSCI 225, Assignments of Computer Science

Toggle sidebar
bg1
COMPSCI 225-002 Introduction to Computer Science II (Spring 2009)
Programming Assignment #2, Due on 2/17/2009, Tuesday (11PM)
Introduction:
This assignment will require you to write two methods in a class LinkedList. A partial complete
LinkedList class will be given. The two methods to implement in this assignment are clone and
toString, where the clone method should create a deep copy as we discussed in class. Next
assignment will be distributed soon which will finish the implementation of the class.
Description:
Copy the files LinkedList.java and TestList.java from ∼jhyeh/cs225/lab/lab2/files in onyx and
implement the clone and toString methods which are partially described as comments in the file
LinkedList.java. The provided java files may have some syntax errors (I do it intentionally). Try
to fixed it.
Submission:
Submit your program from onyx by copying all of your java files to an empty directory (with no
subdirectories) and typing the following FROM WITHIN this directory:
submit jhyeh cs225 2

Partial preview of the text

Download Programming Assignment 2 - Introduction to Computer Science II | COMPSCI 225 and more Assignments Computer Science in PDF only on Docsity!

COMPSCI 225-002 Introduction to Computer Science II (Spring 2009)

Programming Assignment #2, Due on 2/17/2009, Tuesday (11PM)

Introduction:

This assignment will require you to write two methods in a class LinkedList. A partial complete LinkedList class will be given. The two methods to implement in this assignment are clone and toString, where the clone method should create a deep copy as we discussed in class. Next assignment will be distributed soon which will finish the implementation of the class.

Description:

Copy the files LinkedList.java and TestList.java from ∼jhyeh/cs225/lab/lab2/files in onyx and implement the clone and toString methods which are partially described as comments in the file LinkedList.java. The provided java files may have some syntax errors (I do it intentionally). Try to fixed it.

Submission:

Submit your program from onyx by copying all of your java files to an empty directory (with no subdirectories) and typing the following FROM WITHIN this directory:

submit jhyeh cs225 2