Which of the following possible reasons BEST explains why a SortedList implementation would not need the method, add(int newPosition, T newEntry)?
The SortedList add(newEntry) method has the responsibility of adding new entries in sorted order, as a result Client code would no longer be required to, or be allowed to, specify the location of the new entries by using add(int newPosition, T newEntry).
- To reduce the number of lines of code required
- The behavior achieved through the add(int newPosition, T newEntry) could also be achieved by combining other SortedList methods.
- The contains method could be used instead.
There are no hints for this question.