Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am trying to remove the name Irina and then move every entry back one. This is explained in step 8. 7. Modify Main so
I am trying to remove the name Irina and then move every entry back one. This is explained in step 8.
7. Modify Main so it uses a SortedPD instead of an ArrayBasedPD. Copy the methods add, find, and remove to the SortedPD class, including their Javadoc comments. Visit http://www.cs.miami.edu/-vjm/csc220/prog02/dist/csc220.txt and save this file to your workspace/csc220 directory. Visit csc220.txt in Eclipse. You should see Victor vjmscs.miami.edu Irina irina@cs.miami.edu Jerr j.bonnellemiami.edu Halle hallekfields@miami.edu George jxp14688miami.edu Run Main, and tell the program to remove Irina and save. Refresh the csc220.txt window in Eclipse. You should see Victor vjmscs.miami.edu George jxp1468@miami.edu Jerry j.bonnellmiami. edu Halle hallekfields@miami.edu Why? Because the way it removes Irina is by copying the last entry (George) into the same location. 8. Exit the program. Restore csc220.txt by saving it from the browser again and refreshing the window in Eclipse. Modify remove (irn SortedPD) so instead of copying entry [size-1] on top of entry [index] it moves entries [index+1] to [size-1] each back one. Now when you run Main, remove Irina, and save, and refresh csc220.txt, you should see Victor vjmecs.miami.edu Jerry j.bonnell@miami.edu Halle hallekfields@miami.edu George jxp14680miami.edu Do not modify add or find until you have this working. protected DirectoryEntry remove (int index)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