Data Structures and Algorithms
Programming Assignment
Linked Lists


We will do a program involving linked lists. Your program will read a file containing a Java program and produce a cross-listing of the user-defined variables in the program. You will create two lists of items. Each time you encounter a word (startswith a letter, followed by letters, numbers of spaces, you will extract the word, determine if it is a reserved word, and if not, put it into a list if it is not already there. you will add a node off this node that contains the line numbe in the program where the word occurred.

If the word is already in the list, you will check to see if the line number isalready in the list (the word occurred previously on the same line). If it is already in the list, you will do nothing. If it is not, you will insert the line number.