This content has been marked as final. Show 6 replies
808072 wrote:No, of course not.
oh, yes. I forgot about serialization. Just wondering though...is serialization the only option?
There are tons of different approaches. You could use JAXB (or any other XML mapping framework) to serialize to XML.
You could write to a CSV file (with or wthout library support).
You could construct your own binary file format.
You could write an excel sheet with the data in it.
You could ...
Such an open ended question doesn't really lead anywhere, you need to be more specific with your requirements.
Thank you for your response.
The reason my question was open-ended as you mentioned is that I am trying to find an easy way to explain this to someone whose knowledge of Java is very little. I thought there might be an easier way but I guess serialization would be the easist in this case.
Thanks a lot for you help again.
808072 wrote:Wouldn't a better approach be to ask for an easy-to-explain solution instead? This way we can provide information tailored towards the actual problem you're facing instead of guessing ourselves.
The reason my question was open-ended as you mentioned is that I am trying to find an easy way to explain this to someone whose knowledge of Java is very little.
For an easy-to-explain solution I would actually go with a very simple text-based solution (probably a CSV file).
The main reason is that it's reasonably easy to write and that the resulting file can easily be inspected and manipulated with a simple text editor. Serialization looks more like "magic" to someone with limited knowledge.