Alex Ba wrote:... As in, how does one code a pointer to point to the next node. Is it some other variable I'm overlooking? Or am I missing something?
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Not looking to steal code, just want some direction.
Pankaj Vijay (SCJP, SCBCD)
Learn Core Java,Learn Servlet Jsp, SCJP Questions,Struts Tutorial
Maneesh Godbole wrote:
Figuring out things is the best way to learn. Though you meant well in providing the link, it wouldn't have helped Alex to learn.
Also,Not looking to steal code, just want some direction.
Alex Ba wrote:
To start, I guess you could say that I don't understand what is supposed to go in the parameters for the intnode part. AKA, the IntNode(int i, IntNode n). I understand what i is supposed to be, but what would go for n?
Alex Ba wrote:and was recently given a lab where I have to create a linked list. I understand the general concept, there is a value that has a pointer to the next item in the list, and possibly a pointer to the previous.... My question is, how do pointers work? As in, how does one code a pointer to point to the next node.
Alex Ba wrote:
I have that much, and apparently I'm right with that. From there, I'm completely lost.
Alex Ba wrote:So, I use the IntNode class is being used by the intcoll class, but not the main?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |