You must hand in a program written in the Joos 1 subset of Java. The purpose of this assignment is to make you familiar with the features and limitations of this language. It will also be used as part of the benchmark for the peephole contest. It does not matter what your program does, but make an effort to write an interesting and amusing program (one possibility is to translate an old Java program into Joos 1).

The program should be between 50 and 300 lines of code that can be compiled with the command:

camljoos2 -joos1 *.java
The compiler will create one or more Jasmin files (with .j extension) , which you have to assemble into class files with the jasmin command.

(To be on the safe side the old reference compiler is also available as joos2c -joos1)

You must post an entry in your group blog that explains how your program works.

Note: to make the above commands available on cs.au.dk machines you must set your PATH to include /users/dovs/bin using

export PATH=/users/dovs/bin:$PATH
You can set the path permanently by adding the above line to a suitable .rc-file in your .daimi-setup/bash/bashrc.d/ directory, e.g., .daimi-setup/bash/bashrc.d/dovs.rc