[Solved] How to write a remove method?
So far, you have the right idea. I am going to assume based on your syntax, that you are using an array. Your get() method looks good, but you are missing some code from your remove() method. public int remove(int index){ //check for out-of-bounds if(index < 0 || index >= size) //assumes size is set … Read more