while?
Does it read properly the first object?
This is not right on so many levels: - English in the code please - The indentation.... - Don't use while true - Don't wait for exeptions to be thrown, you just just check when the objest read is null - Do not serialize several objects in the same file just one after the other, if you just put them in a list or array and then serialize/deserialize that, it's easier and more reliable - Do not manually close streams, use try with resources
Обсуждают сегодня