I'd thank Andrew first.
I almost complete my assignment. I am
testing and checking the code, and preparing for packing my project. I read the
SCJD instrutions again and again, while I still can not understand it well.
-----------------------------------------------------------------
Q1: " All numeric values are stored in the header information use the formats of the DataInputStream and DataOutputStream classes. All text values, and all fields (which are text only), contain only 8 bit characters, null terminated if less than the maximum length for the field. The character encoding is 8 bit US ASCII. "
I use RandomAccessFile class to read and write value. Must I use the DataInputStream and DataOutputStream classes??
-----------------------------------------------------------------
Q2: " Your choice of RMI or serialized objects will not affect your grade, but no other approach is acceptable. In either case, the program must allow the user to specify the location of the database, and it must also accept an indication that a local database is to be used, in which case, the networking must be bypassed entirely. No authentication is required for database access. "
" When you submit your assignment, each part (client and server) must be executable using a command of this exact form:
java -jar <path_and_filename> [<mode>] "
" Your programs must not require use of command line arguments other than the single mode flag, which must be supported. The mode flag must be either 'server', indicating the server program must run, 'alone', indicating standalone mode, or left out entirely, in which case the network client and gui must run "
" The executable JAR containing the programs. This must be called runme.jar. "
According my understanding about upper words, I wrote only one main class to start programs with defferent commands:
To start client program: java -jar runme.jar alone
To start server program: java -jar runme.jar server db.db
Am I right??
-----------------------------------------------------------------
English is not my mother tongue, I just want to make it sure.
I still have other questions, I will post them next time.
Thank you all!!