Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You need to create a subdirectory called funList and move IntList.java into it.  The full class name for IntList is now funlist.IntList.

Reopen the file in the funList subdirectory. Now compile again. You should get error messages saying  it can't find class IntListVisitor and class ConsIntList this time.  You will need to package all the other classes/intefaces and move them into appropriate subdirectories.

...

Save it in a subdirectory of funlist called visitor. The full class name for GetLength and GetLengthHelp are now funlist.visitor.GetLength and funlist.visitor.GetLengthHelp, respectively. Note that GetLength is public while GetLengthHelp is package private. Now try to compile it! You will see a few error messages. Fix the errors until everything compiles.

...