File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

B&S: Implementing interface and search interpretation

 
Vincent Li
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

A few of us are working on our SCJD together here (what I mean is something like a study group to exchange ideas), and a couple of questions came up, so perhaps someone here can shed some light:

1) When the assignment says the Data.java "must implement the DBAccess interface", do you interpret that as implementing all the methods or can simply stub out those that are not required? For example, the create() method is not really used by the GUI as specified. So I can just define an empty method and put in choices.txt that it's to be implemented in the future or do I have to implement its functionality? My argument is that one need to implement the functionality and even consider it an automatic failure if you don't. But you can argue the other way, so like to see what people think here.

2) In the search method, the comment says to match the field starting with the criteria string. But we have a field specialties for the contractor, where it is a list of items. Do you still implement with the "starting" or actually do some interpretation? i.e. if the specialties is "Heating, Electrical", then a criteria of "Heating" would match, but "Electrical" would not. On the other hand, in real life, one would expect both to match.

Thanks for any input.

Vince
 
Brian Kelly
Ranch Hand
Posts: 54
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"must implement" seems pretty clear to me. I wouldn't take any risks with those "musts"!

My 2 cent...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic