ITEC 120
Array of Treasure

Objectives

To successfully complete this lab you will develop methods that operate on arrays of objects.

Assignment

For this assignment you will implement some familiar methods that operate on an array of treasures.

TreasureArraySrv

Create a service class named TreasureArraySrv and implement the methods described below. Start by creating stub methods and use the incremental, test-driven development process. Use the appropri­ate type of loop to implement each method.

TreasureArrayDrv

Create a test driver with test cases to test these methods you wrote. You may want to refer to the test cases for the Searching Arrays lab to see similar test cases. You will need an empty array of treasure and a few other arrays of treasures. You may want to create these arrays at the top of the test driver and use them throughout the test driver.

Submit Your Assignment

Submit TreasureArraySrv.java and TreasureArrayDrv.java to the Lab Submission Folder on D2L.