Results 1 to 4 of 4
  1. #1
    Chad.Curtiss is offline Member
    Join Date
    Jul 2012
    Posts
    8
    Rep Power
    0

    Question How to make a Java Console Program save user made changes?

    I want to make a Java console program that can save what the user did, so the next time that the user opened it the changes would still be there.

  2. #2
    FlipPoker@gmail.com is offline Senior Member
    Join Date
    Mar 2011
    Posts
    103
    Rep Power
    0

    Default Re: How to make a Java Console Program save user made changes?

    You'll need to save the user's actions to disk. Assuming that a database is overkill for your assignment, take a look at basic I/O. A more elegant way to do it could be with object serialization. Object serialization can take an object and write it to disk. It can then read it back as the original object.

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: How to make a Java Console Program save user made changes?

    I prefer to do human readable serialization if possible with XML. One way (and what I've used) is with JAXB. I've read that XMLBeans can do this too.

  4. #4
    Chad.Curtiss is offline Member
    Join Date
    Jul 2012
    Posts
    8
    Rep Power
    0

    Default Re: How to make a Java Console Program save user made changes?

    Well its not really for an assignment or anything like that. I am new to Java and I am just trying to practice by writing different programs. I will take a look at what you said! Thanks

Similar Threads

  1. eclipse and user made library
    By walkswithzombies in forum Eclipse
    Replies: 10
    Last Post: 02-13-2012, 11:03 AM
  2. Arrays made from user input
    By sonofJack3 in forum New To Java
    Replies: 15
    Last Post: 12-01-2011, 06:18 AM
  3. Replies: 2
    Last Post: 10-22-2011, 03:29 PM
  4. Replies: 2
    Last Post: 06-30-2010, 07:19 AM
  5. Replies: 2
    Last Post: 03-22-2009, 06:43 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •