Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please follow all instructions carefully and use JAVA to do the following: Please refer to the following: https://repl.it/@tom_don/SpicyRigidArrays --> ArraySetTests.java https://repl.it/@tom_don/PreemptiveIckyRoutine --> impl1/ArraySet.java https://repl.it/@tom_don/ToughDamagedAddress -->impl2/ArraySet.java
Please follow all instructions carefully and use JAVA to do the following:
Please refer to the following:
https://repl.it/@tom_don/SpicyRigidArrays --> ArraySetTests.java
https://repl.it/@tom_don/PreemptiveIckyRoutine -->impl1/ArraySet.java
https://repl.it/@tom_don/ToughDamagedAddress -->impl2/ArraySet.java
2 GENERIC Array SeT The code distributed with this lab contains two directories labeled impl1 and imp12 which contain slightly different implementations of an ArraySet. Set classes are meant to track a collection of unique objects: no redundancy is allowed so that items are either in the set or not in the set. The set supports . Two constructors add(x): ensure that item x is in the set remove(x): ensure that item x is NOT in the set contains (x): true if item x is in the set, false otherwise toString() : produce a string version of the set These methods are supported by an underlying array which is expanded on demand in a similar fashion to the strategy used by ArrayList. IMPORTANT: You are not writing the Arrayset class in this lab. You are testing two implementations to figure out which is correct and which is faulty. To test, however, you must understand what the class is supposed to do which is facilitated by the documentation below 2.1 Directorv Structure of Lab Use the directory structure provided in the code distribution which should have the following files lab8pack : rename to your NetID_LabNum_L8 answers to this file + ANALYSIS.txt +-. ArraySetTests.java : Add tests to this file + impl1/ : Add +ArraySet.javaDo not modify, provided imp12/ +ArraySet.javaDo not modify, provided +- junit-4.12.jar
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started