EECS 1720 Lab 1 Jan 12 & 13, 2017

This lab consists of 6 programming exercises, which are contained in the following Eclipse project archive 1720W17Lab1Exercises.zip. Download the file and import it into Eclipse as a project.

The 6 exercises are described in the files ExerciseN.java in the src directory of the project. Each exercise builds on the previous one.

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 all the exercises.

This lab is not graded and you don't need to submit anything. However the solution to the last exercise is similar to that of a problem that you will have to solve in next week's lab, which will be graded.

How to import a Java project archive into Eclipse:

  1. download the Java project archive zip file
  2. select the File menu
  3. select Import item
  4. select General item
  5. select Existing project into workspace item and then click the Next button at the bottom
  6. click the radio button next to Select archive file and click the Browse button on the following dialog
  7. browse to find the Java project archive zip file and select it; the project name should now appear in the window below
  8. click Finish to finish importing the project, which should then appear in the Package Explorer window.

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

This lab is not graded and you don't need to submit anything. However the solution to the last exercise is similar to that of a problem you will have to solve in next week's lab, which will be graded.