This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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

question regarding find() method

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everybody,
I have got an doubt here regarding the find() method.
I have a method define Bookseats(String Flightno,int seats)
which implements the " Find()" method to get the record depending on the FlightNo. but my problem is that the findmethod does not work until i modify the "values[0]" to "values[0].trim()".
But in the assignment it is not mention to edit the Find() method could anyone tell me is this the right approach or i have to change my database conversion tool ?
Thanks .
 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My BookFlight takes a record number and avoids that problem. Remember that DataInfo has a method called getRecordNumber. Then you can use the lock(recnum), getRecord(recnum) method calls
 
    Bookmark Topic Watch Topic
  • New Topic