Search:

Type: Posts; User: clydefrog

Search: Search took 0.10 seconds.

  1. Replies
    19
    Views
    2,051

    Re: Weird problem with my linkedlist

    Actually disregard that, i'm an idiot.

    been programming for a straight 6 hours now; my head is throbbing...
  2. Replies
    19
    Views
    2,051

    Re: Weird problem with my linkedlist

    lol thats true.

    at the risk of sounding annoying, i do have one other question.

    i've implemented the ability to add polynomials, and thats working perfectly. Now i need to subtract polynomials....
  3. Replies
    19
    Views
    2,051

    Re: Weird problem with my linkedlist

    OMG THANKS JONLANE!

    it is all working perfectly now! it is printing and ordering the terms in canonical form! I cant tell you how much i appreciate your help. Same with you Norm.

    Now, the hard...
  4. Replies
    19
    Views
    2,051

    Re: Weird problem with my linkedlist

    okay guys, so i did what you suggested (adding a bunch of println's) and VOILA! the null error was found. THANK YOU SO MUCH!

    the problem was the for loop in my prep class. it would send each part...
  5. Replies
    19
    Views
    2,051

    Re: Weird problem with my linkedlist

    i really do think it has something to do with my linked lists. I have several printlns in my program and it shows that my regex is able to extract coef/exp out of the input but for some reason its...
  6. Replies
    19
    Views
    2,051

    Re: Weird problem with my linkedlist

    no :(

    i'm trying to trace through process but i cannot see why that variable would be null.

    EDIT:

    if change:

    p.setNext(temp); to p = temp;
  7. Replies
    19
    Views
    2,051

    Re: Weird problem with my linkedlist

    thank you all for the quick replies. :)




    I'm not too sure what you mean. you mean something like this?



    public Polynomial prep(String s)
  8. Replies
    19
    Views
    2,051

    Weird problem with my linkedlist

    Hi guys.

    I'm having this weird problem with my linked list. basically i'm making a linked list implementation of a polynomial; my nodes contain 2 elements (coefficient,powers). It works somewhat...
Results 1 to 8 of 8