Okay so I'm trying to add an element to the start of a circular doubly-linked list and I am not sure how I am suppose to go about writing this method. Any advice or direction would be greatly...
Type: Posts; User: BetterCallSaul
Okay so I'm trying to add an element to the start of a circular doubly-linked list and I am not sure how I am suppose to go about writing this method. Any advice or direction would be greatly...
Thanks for your patience
Thank you for the advice
However, if I treat the insertion like a would if I was adding the element to the end of the list the code runs through once.
public void add(Workstation element) {...
list.getBack().setForward(newNode);
Thanks for the advice
The error message I am receiving is:
Exception in thread "main" java.lang.NullPointerException
at cs187.asn03.TokenRingList.add(TokenRingList.java:47)
at...
Hello,
I'm new to this forum so I apologize for any mistakes I'm going to make, I'm still learning the ropes. I am writing a token ring simulation program and am using a circular doubly linked...
Hello,
I'm new to this forum so I apologize for any mistakes I'm going to make, I'm still learning the ropes. I am writing a token ring simulation program and am using a circular doubly linked...