P
Piet den Dulk
Dear Java programmers,
I'm have a linked list that works fine. But When I try to make a copy of
that list, the copy still references to the original. I allready have tried
a copy contructor in my classes but this doesn't work because the classes
themselves holds classes. Like al listNode holds a nexNode from thesame
type.
I need the copy from an object because I want to put it as an argument in a
recursive(backtring) call. And I want to keep the original. How can I simple
copy my list and have it's own content. It is really confusing me. Who can
help me out and tell in simple words.
best regards,
Piet den Dulk
I'm have a linked list that works fine. But When I try to make a copy of
that list, the copy still references to the original. I allready have tried
a copy contructor in my classes but this doesn't work because the classes
themselves holds classes. Like al listNode holds a nexNode from thesame
type.
I need the copy from an object because I want to put it as an argument in a
recursive(backtring) call. And I want to keep the original. How can I simple
copy my list and have it's own content. It is really confusing me. Who can
help me out and tell in simple words.
best regards,
Piet den Dulk