Skip to content
Advertisement

Tag: custom-lists

Implementing List interface for CustomList in Java

I need to create a custom list that adds elements in pairs. I copied a similar implementation and adjusted it as needed, but unfortunately, it doesn’t work. And I have this for testing my code so far. The problem is that when I call add method the size of the list increases by 2 as it should, but nothing is

Advertisement