EECS 1720 Lab 2 Jan 19 & 20, 2017

There are 2 exercises in this lab. In the first exercise, Check00A, jou will learn how to use the eCheck software to submit and automatically check your solutions to lab exercises from the Java By Abstraction textbook.

First start Eclipse and create a new Java project named 1720W17Lab2Exercises.

Next create a class named Check00A in the default package. Then paste this Check00A starter code into the Check00A.java file.

Then follow the instructions in the comments in the Check00A.java file to complete the Check00A exercise. You should consult also the instructions in Section L1.2 "A eCheck Tutorial" on p. 40 of the Java By Abstraction textbook.

The second exercise, Check11A, deals with exception handling. Create a new class named Check11A in the default package. Then paste this Check11A starter code into the Check11A.java file.

Then follow the instructions in the comments in the Check11A.java file to complete the Check11A exercise. You should consult also the instructions for the Check11A exercise on p. 441 of the Java By Abstraction textbook.

Some of the exercises use the Toolbox.crash method to perform validation. The Toolbox class is defined in the type library. To use it, you must attach it as an external library to your Eclipse project which is contained in the following JAR file type.jar.

Complete both exercises.

The deadline for completing the lab and running eCheck successfully for both exercises is 23:59 on February 3, 2017 - extended!

How to add a JAR file to your project:

  1. download the JAR file
  2. select the Project menu
  3. select Properties
  4. on the left side of the dialog that appears, select Java Build P ath
  5. on the right, select the Libraries tab
  6. click the Add External JARs... button
  7. add the JAR file you downloaded