lily-ab / lab1

0 stars 0 forks source link

When we can get such situation? #2

Open IrinaSvinareva opened 6 years ago

IrinaSvinareva commented 6 years ago

https://github.com/lily-ab/lab1/blob/27ce9c7037ba0c839ca952c6d6b4e2d8382c366e/src/com/lab1/MyArrayList.java#L248

lily-ab commented 6 years ago

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.