About Question enthuware.ocpjp.v7.2.1389 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
Student
Posts: 53
Joined: Fri Sep 20, 2013 7:20 am
Contact:

About Question enthuware.ocpjp.v7.2.1389 :

Post by Student »

Hi,
I just found out that native arrays are Serializable in Java; maybe it might be worth mentioning that in the answer, because otherwise some people might think (as I did) that you would need to use an ArrayList rather than a native array, when you don't.
Just a thought.

Cheers.

bptoth
Posts: 33
Joined: Mon May 06, 2013 9:41 am
Contact:

Re: About Question enthuware.ocpjp.v7.2.1389 :

Post by bptoth »

I played around some with the explanation code, and it seemed to me that using writeObject() and readInt() respectively for bonds.length results in a java.io.EOFException during the read. Using write()/read() or writeInt()/readInt() seems to solve the issue

admin
Site Admin
Posts: 10389
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1389 :

Post by admin »

You are right. That's a typo. If you write using writeInt, you should use readInt to read. Fixed.
thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests