Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
Venkat Chadaram<br />SCJWSD <br />SCBCD <br />SCJP 1.4
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
Roberto Perillo wrote:Howdy, Hmontiel. Welcome to JavaRanch!
Well champ, what happens if you set the FIELD_NAME_BYTES variable to 1?
Alex Dragoi, SCJP 1.4, OCPJP 6
Pawel Pawlowicz wrote:I used spaces (\u0020). Why? Because the db file provided to me already used this approach. And as I noted in choices.txt I would not expect any field beginning with spaces I just justified using of String.trim() when reading data ;).
Alexandru Dragoi wrote:Ohh...so I guess it depends on the database file you receive with your assignment.
Alex Dragoi, SCJP 1.4, OCPJP 6
Alexandru Dragoi wrote:What is your opinion about this?
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
Cheers, Gautham Kumar.
SCJP, SCWCD and SCBCD
**OCP, Java SE 6 Programmer**OCM, Java SE 6 Developer**
Cheers, Gautham Kumar.
SCJP, SCWCD and SCBCD
Gautham Kumar wrote:Easpecially the following line the getValue method :
value += (byteArray[i] & 0x000000FF) << shift;
0x000000FF = 255, what exactly are you trying to do in above statement? Are you performing leftshift and reading the file?
Please explain if possible.
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
Cheers, Gautham Kumar.
SCJP, SCWCD and SCBCD
Gautham Kumar wrote:I can create my own databasereader and implement all methods of sun interface and use this tool(class) s utility class to read data from the DB file.
Is this an accpetable approach?
Cheers, Gautham Kumar.
SCJP, SCWCD and SCBCD
Tongue wrestling. It's not what you think. And here, take this tiny ad. You'll need it.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|