Title: Cross Reference Program
Course: CPS 261: Advanced Java Concepts ~ DL & MM MASTER > Section: Learning Units - Bb

Presentations and Videos

- Cross Reference Program lecture video (Time: 12:00)
- Cross Reference Program document

- In this lecture, we create a simple cross reference program using a TreeMap. The declaration type is:Note that the Key is a String which contains a word found. Because we are using TreeMap, the words will come out in alphabetical order when we iterate through them.
  - TreeMap<string, linkedlist<integer="">>wordInfoTree;
  - Note that the Key is a String which contains a word found. Because we are using TreeMap, the words will come out in alphabetical order when we iterate through them.
  - Note that the objects stored with each word are LinkedLists of all of the line numbers where the word was found.