Thanks to both of you for the reply.
As far as my level, I am not a beginner, I would think a little more than intermediate, but I am also not an expert by any means.
I have done classes before, and was pretty sure I had to do it that way, but got confused and tried to do it this, what seemed to me then, as an "easier" way.
What I have now is, for example:
The way, I have the program written, lets say someone wants to be added as a passenger to Flight 100, I have it like this:
So, the linked list would now be:
Then, I also have the remove function working. The problem is when they want to print the passengers for a particular flight.
I thought I could do something like I stated above, adding a printFlight() method to the LinkedList class, starting at the node for the flight they enter, and printing all the data in between that, and the next occurence of "Flight".
To be perfectly honest, I am a senior in Computer Engineering, and last week was midterms. In the mix, I totally forgot about this assignment, and am trying to get as much as I can done by tonight @ midnight!
Also, for engineering majors, they have a class that they claim is to be the equivalent of beginning & intermediate programming rolled into one semester. They cant obviously get all the info from both courses into one, so they skip on alot of stuff.
I took that course 2 yrs ago, and the next course in line was data structures & algorithms. I am having to review everything, and I could definitely use some work in my encapsulation.
If I had more time, I would definitely be trying to get it as structured as possible.
Thanks to both of you for your help. I really appreciate it, and I would like to say this site has been one of the most helpful sites I have visited, where you guys actually try to explain things, instead of just posting code.