Open IrinaSvinareva opened 6 years ago
https://github.com/lily-ab/lab1/blob/27ce9c7037ba0c839ca952c6d6b4e2d8382c366e/src/com/lab1/MyArrayList.java#L248
As I understand it, in case of change of the collection size. If the collection has changed after sorting, the method throws an exception. Perhaps in our case it is not necessary.
https://github.com/lily-ab/lab1/blob/27ce9c7037ba0c839ca952c6d6b4e2d8382c366e/src/com/lab1/MyArrayList.java#L248