• Post Reply Bookmark Topic Watch Topic
  • New Topic

Did this Serialize and deserialize correctly?  RSS feed

 
Callan Cooper
Greenhorn
Posts: 1
Chrome Eclipse IDE Notepad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i just need someone to check if this is done correctly the prompt to our assignment: "Write a simple number generator program that creates a ten element array of random numbers. Save the array and restore it. Show the output for both the original and restored version." it runs fine but I'm unsure if the goal of serialization was actually achieved
any help is appreciated

 
Stevens Miller
Bartender
Posts: 1445
30
C++ Java Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch, Callan.

Your assigment was this:
Write a simple number generator program that creates a ten element array of random numbers. Save the array and restore it. Show the output for both the original and restored version.

Note that I've added some emphasis to part of what I've quoted (I'm a lawyer and we like doing that.)

Before we worry about serializing anything (and, we may not ever need to), where in your program do you feel you have saved the array? Where do you feel you have restored it?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!