Homework 1 - Reading Code
Due: Wednesday, January 26, 2005

Introduction

This assignment is just to get a baseline before the first programming assignment. It is to ensure that you can get files from the Web site, as well as edit, compile, and run java programs.

We'll hand them in together on class Wednesday.

Please download each of the .java files linked below. Please then compile each and then feed GroceryItem to the JVM and watch it run. Next open each of the two files in the plain text editor of your choice (notepad, pico, vi, emacs, CodeWarrior, &c) and add a comment to the top. This comment should contain your name. Next, recompile and run again -- make sure everything work.

Compiling and Running

    javac *.java
    java GroceryItemTester