I'm trying to make a dictionary program using linked lists. I need four classes, one that holds the word and the meaning. One that creates the node of information and its link field. Another class that creates and maintains a linked list of words and their meanings. And then a test class.

The code is using a variable of type: WordMeaningNode where it should use one of type: WordMeaning

April 14th, 2013, 08:36 PM

akusa

Re: trouble with linked lists

okay. So, how would be the correct way to go about this. Because i'm using the same code that my professor gave us.

April 14th, 2013, 08:47 PM

Norm

Re: trouble with linked lists

Did you copy and paste the source, or did you type it in from notes?

Can you post the full text of the error messages? You've left out some of the information.
The message should show the source with a ^ under the location of the error.
Here is a sample from the javac compiler: