import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;

public class TrieExample {
  public static void main(String[] args) {

    // Open the data file
    Scanner scf = null;
    try {
      scf = new Scanner(new File("./data/peter_piper.txt"));
    } catch (FileNotFoundException e) {
      e.printStackTrace();
    }

    TrieST<Integer> st = new TrieST<Integer>();

    // Read file's next line
    while (scf.hasNextLine()) {
      Scanner scl = new Scanner(scf.nextLine());

      // Read line's next word
      int i = 0;
      while (scl.hasNext()) {
        String key = scl.next();
        st.put(key, i);
        i++;
      }
    }

    // TODO: print results
  }
}

@@ -678,14 +678,8 @@
   //
- TODO:
  pri
@@ -689,14 +689,106 @@
 results%0A
+    for (String key : st.keys()) %7B%0A      System.out.println(key + %22 %22 + st.get(key));%0A    %7D%0A
   %7D%0A%7D%0A

Print resulting symbol table