A simple solution is to use ObjectOutputStream with serializable objects.
A simple solution is to use ObjectOutputStream with serializable objects: class Coordinates implements Serializable{...} ObjectOutputStream out = new ObjectOutputStream(...); out. WriteObject(new Coordinates(...)).
Thank you :) a bit of research into serializable objects yielded some good results. – Craig Jones Dec 3 '09 at 12:57.
Craig, you're close. Dynamic/static is a misunderstanding, this has nothing to do with your racing game or values changing. It's just that you can't deserialize fields, that are declared static (or transient), as it says in the javadoc for ObjectInputStream: Fields declared as transient or static are ignored by the deserialization process.
The solution is (hopefully) simple: remove the static modifier from your x/y integers, that should solve the problem. Btw - if your String had been static, it would have failed exactly the same way.
Thanks for the suggestion, unfortunately the integers were called upon in main, and removing the static cause an issue when running that it could not find a main method. I think serializable objects mentioned above is the right track for what I need. Thanks again though.
– Craig Jones Dec 3 '09 at 13:26.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.