Ivan Polovyi
Jun 1, 2024

--

Hi Vetcho, It won't throw an exception, but it is still a bug. :) If you supply a delete method with any number equal or greater than the size of a list, it will quietly delete the last element of the list. It should probably throw an exception. Thanks for catching it. And thanks for reading!

--

--

Ivan Polovyi
Ivan Polovyi

Written by Ivan Polovyi

I am a Java Developer | OCA Java EE 8 | Spring Professional | AWS CDA | CKA | DCA | Oracle DB CA. I started programming at age 34 and still learning.

No responses yet