Issue
I will do the addition multiplication and print operations of two separate polynomials that I will get from the user. However, when creating two linkedlists in the main class, the nodes that I added to the first linkedlist are replaced by the nodes that I added to the second linkedlist. How can I solve this?
Solution
Inside your LinkedList class you declare your Nodes "first" and "last" as static. This means that both LinkedLists share the same first and last. You wont be able to have a separate linked list if they remain static.
Answered By - janst
Answer Checked By - Cary Denson (JavaFixing Admin)