• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading and Writing serialized java Objects  RSS feed

 
dumisani magwentshu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

[Moderator action: Removed the question from the code tags, so it would be readable.]

hey guys i'm new to java and i have been given an exercise to make a cd collection, write it into a file and read the data back to the program.

the program is suppose to show you a menu to select from where you can add, delete, view sort, CD's when you add a CD it must be written to a file as an Object and when you want to view CDs or search for a CD the program must read the CD objects from the file they have been written to and must return a cd nam, artist and release date. the code looks like it is writing the Cd to a file but when i try to read (view or search for a cd from the file it gives an error null). so i think i'm note reading the right way.

thank you for helping .

 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please BeForthrightWhenCrossPostingToOtherSites(⇐click) so people don't waste their time repeating each others' answers.

https://forums.oracle.com/forums/thread.jspa?threadID=2391393&tstart=0

Thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!