Hi, Well I'm having the hardest time understanding how to implement a linked list in Java. This is for an assignment, and we cannot use any of the linked list package. I learned C first, and I really got used to using pointers. Now I'm all confused with the whole "reference" thing in Java. I don't understand this concept!! So far, all I have is:
and I bet that won't work!! My main problem is that in C, you create a pointer that's going to point to the whole struct, and that struct's next's pointer (or whatever name you give it) will point to the next element. How do you do that in Java?