Search:

Type: Posts; User: EDale

Search: Search took 0.10 seconds.

  1. Replies
    7
    Views
    1,704

    Re: Remove at index in singly linked list?

    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)
    ------------------------
    ...
  2. Replies
    7
    Views
    1,704

    Re: Remove at index in singly linked list?

    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...
  3. Replies
    7
    Views
    1,704

    Re: Remove at index in singly linked list?

    Here is what I got



    import java.util.Iterator;

    public class SinglyLinkedList<E> {

    private static class Node<E> {
  4. Replies
    7
    Views
    1,704

    Remove at index in singly linked list?

    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,...
Results 1 to 4 of 4