Jianping Wang wrote:So I only include name and location in search section of client GUI.
It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user.
The "exactly match" seems more restrict than "start with". Should I ignore "exactly match" and adopt "start with" instead?
I understood this differently - my GUI must allow searching by this, but it never says it is the only way, so I concluded I might provide something additional, a superset of this must. As a result, I implemented a case-insensitive search using String.contains(), which will work for the mentioned requirement (if someone puts an exact location, it will be found), will work for the example in the DB interface (for "Fred" find "Fred" and "Freddy"), but also is more user-friendly.
Generally, I see now that in y assignment I did a lot of things may way, a lot of decisions is made based on how I understood the requirements, not how this forum interprets them. For example, my assignment never says that I cannot use java.nio classes, so I used java.nio.Charset. We will see ;d