Here is the output now:
The size of the list is 6 and the list is given below
[Donald ==> Brett ==> Issac ==> Dana ==> Dillon ==> Jonathan]
Testing remove(int index)
------------------------
...
Type: Posts; User: EDale
Here is the output now:
The size of the list is 6 and the list is given below
[Donald ==> Brett ==> Issac ==> Dana ==> Dillon ==> Jonathan]
Testing remove(int index)
------------------------
...
Okay. Well I really don't have time to start a new project and try and write a smaller and simpler code so that you may see what my problem is here. I don't think I've been exposed to linked lists...
Here is what I got
import java.util.Iterator;
public class SinglyLinkedList<E> {
private static class Node<E> {
Okay so I've created a public E remove(int index) method, it works fine at removing. However, when it removes the node at index size-1, and then I try to add nodes at the end of the list afterwards,...