The definition of the method remove of the class OrderedArrayList

computer science

Description

Write the definition of the method remove, of the class OrderedArrayList, to remove an item from an array-based ordered list.

Also, write a program to test this method.

Please upload corrections: 

The OrderedArrayList.java file that includes the method remove

  • The test.java file
  • Please note: Do not modify any other section of the code - in this class but the public void remove(DataElement removeItem) method. 
  • The test.java should prompt the user which integer should be removed. Further more if two instances exist both should be removed:
  • Example [1,2,3,4,4,4] Let's assume the user chooses 4. The output should be: [1,2,3] if the user chooses anything outside of the predefined array the user should be given an error message. I have uploaded my modified code: Please take a look and modify the code as neccasery. Make sure to upload your corrections and any test data. 


Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.