Laboratory Exercises For Computer Science 153

An Introduction to Java

An Introduction to Java

The Shift from Scheme to Java for CSC 153 Labs

Summary This laboratory begins a transition from working with the Scheme programming language to Java. The lab first reviews a simple object-oriented program and test suite written in Scheme and then considers the direct translation of the program and testing to Java. The lab then considers details of compiling and running the Java program.

A Simple Course Class in Scheme

Consider a simple class that would maintain information about a course (e.g., CSC 153). Each object in the class might have the following characteristics: