Search:

Type: Posts; User: javapenguin

Search: Search took 0.19 seconds.

  1. Replies
    10
    Views
    1,833

    Re: Linked List problem, please help.

    Also, the ListNodes you're passing as parameters should have their data types. I think that you said they were both Integer.


    public static ListNode<Integer> insertBeforeSmallest...
  2. Replies
    10
    Views
    1,833

    Re: Linked List problem, please help.

    (String)prevNodeMain.getValue ()

    If you're using Integers,

    prevNodeMain.getValue().toString() would be better.

    I don't think the way you have it now will work.
  3. Replies
    10
    Views
    1,833

    Re: Linked List problem, please help.

    int length = Length (prevNodeMain);

    I don't see what this is for.

    Usually you look at the size of the entire list, not a just a single Node.

    Unless Length is another method in the class that...
  4. Replies
    10
    Views
    1,833

    Re: Linked List problem, please help.

    ListNode<Integer> start as your ListNode stores Integers.
Results 1 to 4 of 4