posted 20 years ago
hi Nilesh! you want the entire code?? i am sure you dont want the entire code, only a starting point, right?
since you know linked lists, i will not talk on that. the key concept while implementing linked lists in Java is that objects are always passed by reference.
here is a sample implementation. this is bare bones implementation, but i think sufficient to get you started.