Computer Science 124:
Lab Worksheets, Fall 1998
WELCOME TO the on-line lab worksheets for Computer Science 124: Introductory Programming, a course in Java programming that was taught in Fall term 1998 at Hobart and William Smith Colleges by David Eck. To learn more about the course, please see the information page. In particular, you might want to take a look at the on-line text that was used. In my course we used Sun's free JDK (Java Development Kit), version 1.1.6. The JDK can be downloaded from the Javasoft site at http://www.javasoft.com. The programming was done on a server computer running Linux, which was accessed from Windows 95 computers using X-server software. Students wrote their programs using the free text-editor, nedit. All this is reflected in the instructions in the lab worksheets, but it should not be difficult to understand what is going on and to adapt the labs to a different environment.
These labs use Java 1.1. If you are using a Web browser that does not support Java 1.1, you won't be able to use the applets.
If you would like to download the labs for use on your own computer, see the links at the bottom of this page. Lab worksheets from previous terms are available on-line and for downloading. See http://math.hws.edu/eck/cs124/labs98/ and http://math.hws.edu/eck/cs124/labs96/.
- Lab 1: Introduction to Java, Linux, and the Web
- Lab 2: Programming in the Small
- Lab 3: Using Subroutines and Member Variables
- Lab 4: Parameters and Events
- Lab 5: Using Objects
- Lab 6: Writing Simple Classes
- Lab 7: Arrays of Objects
- Lab 8: More Arrays and Components
- Lab 9: More Components and Events
- Lab 10: Using Files
Source Code for Some Classes used in the Labs:
Lab Directories from the Server
For each of the ten labs, there was a directory containing files to be used in the lab. Each lab begins with the instruction to make a copy of the appropriate directory full of files, and then all the work for that lab is done in that directory. These server directories are available for browsing on-line.
Downloading the Labs:
You can download the entire set of labs for use on your own computer. You are also welcome to post the labs on your own Web server. If you like, you can adapt them for use in a course you are teaching, but I would appreciate receiving some of the credit. Note that the downloadable archives include the labs and all the supporting files. This includes the directories from the server where all the work for each lab is meant to be done. The labs are available for downloading in several formats. I am assuming that you know how to unpack the archives for use on your computer.
- http://math.hws.edu/eck/cs124/downloads/javalabs-fall98.zip, (481KB), for Windows 95/98/NT and other platforms.
- http://math.hws.edu/eck/cs124/downloads/javalabs-fall98.sit.hqx, (644KB), for Macintosh.
- http://math.hws.edu/eck/cs124/downloads/javalabs-fall98.tar.Z, (594KB), for UNIX.