Middlesex County College Java Linked & Amp Array Collection Program Project
Question Description
2. (Programming Challenge) Add the following methodsto the ArrayCollectionclass, and create a test driverfor each to show that they work correctly. In order to practice your array coding skills, code each of these methods by accessing the internal variables of the ArrayCollection, not by calling the previously defined public methods of the class.
a)String toString() creates and returns a string that correctly represents the current collection. Such a method could prove useful for testing and debugging the class and for testing and debugging applications that use the class. Assume each stored element already provides its own reasonable toString method.
b)int count(T target)returns a count of the number of elements e in the collection such that e.equals(target)is true.
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."