CS 235 Projects :: Summer 2009
Project List
- Project 1 - Java Programming Skills
- Project 2 - Spelling Checker
- Project 3 - Boggle
- Project 4 - Sort
- Project 5 - XML Parser
- Project 6 - AVL Tree
- Project 7 - Hashing
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.
- Download the Checkstyle jar.
- Download the Checkstyle configuration file.
-
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.
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