Demo Today (29 Jan 2009) in Lab
- If you find 68, or 70, or 71, or something like that, that's fine; change the unit test if you need to for that.
- You may be overlooking commas, and a nice way to get rid of stuff is the replaceAll(String,String) method. That in turn will expose you to regular expressions, which is something good to know.
- Ask for help if you need it!
Review the material in Lab 2a to gain an understanding of how those two methods work:
if a.equals(b) then a.hashCode() == b.hashCode()
By the end of the semester, you (your team) will demo a GUI for the kwic package. You saw (with more trouble than I intended) the GUI that I wrote, and you found at least 3 things wanting therein.
You can go about writing the GUI two ways:
I estimate this might take you a good 15 hours of work to get something you really like. It's likely that in 7 hours of work you could get something you could turn in without too much loss of pride.
To be honest, I (Prof. Cytron) haven't tried this yet, but I will do so over Spring Break, and I'll ask CEC to install the NetBeans IDE on the machines in the labs (and mirage) so you can use those there if you like.
After Spring Break, I and a posse of students who know NetBeans will try to get you started using this approach.
A decent place to start on your own is here.
Be sure to submit your work using CMS, below.