Originally posted by Hummel Lucy:
Hi Saheed,
Welcome.
In my assignment there is the requirement that my code bases on a Java 2
version that is a production one and currently used and not an old one.
Perhaps you have similar requirement. Please check, if you use the right version.
Originally posted by Bod Toki:
Hello Saheed,
I'd say since you've been away from your assignment a long while, I'd say you should start all over again - It's very much worth the effort, you would have a clean design and it will be fresh in your head for the essay exam (2004 is a long time.)
If however you are not interested in starting all over again and you have tests (say JUnit tests) written for your classes, you can go ahead and refactor then test them. Andrew's book is a good one, so you're good to go.
All the best.
Originally posted by Augusteen Chelliah:
String f(int k)
{
switch(k)
{
case 0: return "A";
case 1: return "B";
}
}
gives comile error there is no return statement in the Function f()
Can any one explain
SEVERE: Error unmarshaling return header; nested exception is:
java.net.SocketException: Connection reset
java.rmi.UnmarshalException: Error unmarshaling return header; nested exception
is:
java.net.SocketException: Connection reset
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
203)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
at suncertify.remote.ContractorDataImpl_Stub.Book(Unknown Source)
at suncertify.gui.GUIController.Book(Unknown Source)
Originally posted by Andrew Monkhouse:
Wow, so much code - more than I want to handle in one hit. So I will look at bits and pieces, not necessarily all at once.
What would happen if the 'if' statment wasnt there and you only had the 'else' action. That is, what would happen if you called "raf.seek(offset + ( recNo - 1) * (recordLength + VALID_RECORD_INDICATOR ) );" with a recNo of 1?
What is this gaining you? That is, what is the value in using newRecords[] in your remaining code instead of using data[]?
What happens if a field provided to you is longer than the allowed field length?
What is 'a' (used in "recordStringBuffer.append(a);")?
In the buffer you write to file, are you accounting for the valid record indicator?
Regards, Andrew