Computer Science 235 :: Data Structures and Algorithms

CS 235 Projects :: Summer 2009


Project List

Note: Projects are to be completed by each student individually (not by groups of students).


Checkstyle

The quality of your Java code will be evaluated using Checkstyle. Your code must pass all the required Checkstyle checks to be given credit. The following Checkstyle jar and configuration file will be used to evaluate your code.

Checkstyle can help you write better code and help you save time in debugging your code. You will only gain this benefit if you incorporate Checkstyle into your code authoring process. Please download these files and run Checkstyle as you write your code.

  1. Download the Checkstyle jar.
  2. Download the Checkstyle configuration file.
  3. Run checkstyle from the command line on all java files in the current directory. $ java -jar checkstyle-all-4.4.jar -c checks.xml *.java

The Checkstyle site documents each of the Checkstyle checks.


Subversion

You have a Subversion repository for this class. The location of your repository is:
svn+ssh://(csid)@schizo.cs.byu.edu/users/groups/cs235(csid)/cs235/ where (csid) is your cs accounts username.

When you want to passoff a project for the class your code must be stored in your Subversion repository. For example, if you want to passoff the first project your .java files for the project need to be stored in:
svn+ssh://(csid)@schizo.cs.byu.edu/users/groups/cs235(csid)/cs235/lab1

The Subversion Tutorial explains how to copy your files into your Subversion repository.

JUnit

Some of the project code uses JUnit for testing. To run these tests you need to download junit.jar.
To use JUnit you need to include junit.jar in your classpath both when compiling and when running.

Here's an example of compiling with JUnit on the command line: $ javac -cp junit.jar *.java
Here's an example of running with JUnit from the command line (this works for Linux and MacOS, but not for Windows): $ java -cp junit.jar:../.. cs235.test.Test

If you are using Windows the path separator is semi-colon rather than colon. So the command for Windows has the ':' replaced with ';' like this: java -cp junit.jar;../.. cs235.test.Test