• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question regarding find() method

 
Devu Shah
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 .
 
Rick Fortier
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic