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!
Project
menuProperties
Java Build P
ath
Libraries
tabAdd External JARs...
button