• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Possible contradiction on OCMJD assignment

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey there

I am currently developing my solution for the OCMJD assignment (Bodgitt and Scarper v.2.3.1), and I guess that I found a contradiction between the instructions (the html file) and the provided interface. The think is that instructions says:

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



and comments in the method 'find(String[] criteria)' in the interface says:

Returns an array of record numbers that match the specified criteria. Field n in the database file is described by criteria[n]. A null value in criteria[n] matches any field value. A non-null value in criteria[n] matches any field value that begins with criteria[n]. (For example, "Fred" matches "Fred" or "Freddy".)



I guess, that I should take the instructions in the html file as the correct way to go and search for the exact matches, but I would like to know the guru's opinion on this

Thanks in advance for any help!
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This must be one of the most asked questions in this forum. Using the search engine will give you a bunch of answers: the most recent one can be found here.
 
Miguel Angel Gonzalez
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Roel, you resolved my doubt with this simple comment on the another post:

filtering the results returned by the find-method



I did not have idea that this question were already asked :P, next time I will search before ask
 
I found a beautiful pie. And a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic