Micheal Bush wrote:No, man, that is not problem, problem is I assign a object to a new object, so it can not update the original one.
Well, aside from that's pretty rude, it sounds like you're asking us to solve your problem instead of help so you can fix the issues yourself.
Ok, so, here you have one possible solution to your problem: If you don't want to learn don't bother to try to implement it yourself but use java.util.LinkedList instead. Otherwise, it would be a good start to try the adviced: Take the code aside for now - try to write down what you want to do in your own words - then describe each single step with a small block - and THEN try to implement these steps one-by-one.
We're here the help you to learn so you can fix your issues yourself - not to solve your problems.