--------<br />Andy Zhu<br />scjp 1.4<br />scjd 1.4<br />SAS Certified Programmer 9.0
Originally posted by Jeff Bosch:
You can't use NIO for the exam.
See SCJD Exam Requirements at Sun.
Searching for a paticular string or int is not easy with RAF. Suggestions?
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
What you thought was right today may need a refactoring tomorrow...
Originally posted by Mike Vess:
Try this to read a string from a RAF:
byte[] data = new byte[fieldLen];
raf.read(data);
String value = new String(data);
Anton Golovin (anton.golovin@gmail.com) SCJP, SCJD, SCBCD, SCWCD, OCEJWSD, SCEA/OCMJEA [JEE certs from Sun/Oracle]
There is an owner "field" but no metadata for the owner field, meaning there no owners have been allocated for each contractor.
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
but the whole string, I mean the entire db file is read as "one" string into "value". Now I need to parse this string to extract Contractor, location and etc. Parsing this ugly string to extract what I need is a huge stumbling block
SCJD, SCBCD, SCJP
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |