hey there,
i'm trying to access the information in a single linked list from another class under the same package, not sure how to or if i even can. i can't seem to find a direct answer. i hope its not something silly, so bear with me if i'm overlooking a detail that i should have seen. i think i just need another perspective on it.
so the point of the program thus far is to read in a series of 400 coordinates from a
test file and draw the resulting polygon in a gui.
so here's the read in/link creation:
and here's relevant portion of the display class:
so that obviously doesn't compile because the linked list is instantiated in the FileIn class.
i want to access the variables stored in the points list that was created so that i can draw lines between the points as the list is traversed. i'm actually getting an idea as i'm typing this but if anyone can take a look i'd surely appreciate it.
i've hit a wall and any help would be greatly appreciated.
Thank you!
Emily