Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PLS HELP

 
Kruger Scheitz
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I am trying to implement lock and unlock methods. I have db.db file that has flight information. The instructions say that I may move this(db.db) file but I may not modify it. I don't understand why db.db should not be modified, then where does the new airline flight bookings go?

my second question is which way is better to get the "word" out of a sentence. Should i first get the "String of data" line by line and then substring them or should i just use StringToken? and I find it hard to use StringToken....please enlighten me!
 
friso dejonge
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I don't understand why db.db should not be modified, then where does the new airline flight bookings go?

You are not allowed to change columnames, etc, but you are allowed to modify (substract) the reserved seats field. Also you do not have to save any information on who booked what, when etc.

my second question is which way is better to get the "word" out of a sentence. Should i first get the "String of data" line by line and then substring them or should i just use StringToken? and I find it hard to use StringToken....please enlighten me!

If you are using it for your criteria find method, then the answer is StingToken. (although it may still be a matter of preference)
Otherwise i cannot see the use for it, and cannot give a valid answer.
sorry again, but hope this helps,
friso
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The instructions say that I may move this(db.db) file but I may not modify it. I don't understand why db.db should not be modified, then where does the new airline flight bookings go?

All it says that you should include the original db.db file with your submission. Your program definitely should modify the db.db, just make a copy.
Eugene.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"if"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it
here.
Thanks! and welcome to the JavaRanch!
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic