Results 1 to 10 of 10

Thread: save user input

  1. #1
    ardel is offline Member
    Join Date
    Feb 2011
    Posts
    4
    Rep Power
    0

    Post save user input

    hi guys...do you know what's the code for saving inputed data.For example, a user inputs data and print it. How will the inputed data save and the next time the user open that program he can search the data that he inputed last time?
    Please help me......

  2. #2
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default

    You can use Object Serialization, XML files or flat text files. Do you know about java IO techniques for saving and reading from files?

  3. #3
    ardel is offline Member
    Join Date
    Feb 2011
    Posts
    4
    Rep Power
    0

    Smile

    .i'm a newbie when it comes to java.....
    Can you post here some code that accept user input and save the inputted data and code that will retrieve those data?

  4. #4
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,789
    Rep Power
    7

    Default

    Of course but why not just give me your requirements and I will do the entire assignment for you. That will save you from learning anything at all.

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

    Default

    Quote Originally Posted by ardel View Post
    .i'm a newbie when it comes to java.....
    Can you post here some code that accept user input and save the inputted data and code that will retrieve those data?
    If you're looking for a a "give me the code" forum, you took a wrong turn. If you want to learn though, we can help. Please read the IO tutorials which you can find here: Basic IO, and then please come on back if you have any specific questions.

  6. #6
    ardel is offline Member
    Join Date
    Feb 2011
    Posts
    4
    Rep Power
    0

    Default

    Junky........:)......Can you please make me a simple code...which accepts and save input then the user can use the save input data....
    Last edited by ardel; 02-14-2011 at 07:57 AM.

  7. #7
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,949
    Rep Power
    19

    Default

    Can you show us the code you've written to attempt to do this yourself?

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

    Default

    Quote Originally Posted by ardel View Post
    Junky........:)......Can you please make me a simple code...which accepts and save input then the user can use the save input data....
    Junky was kidding -- no one here is going to write the code for you. Please put in some effort, study your notes, your books and the tutorials, and try to solve this on your own. If you get stuck, please feel free to first show us the fruits of your efforts. Just don't ask for someone to give you the codes unless your goal is to annoy everyone.

  9. #9
    ardel is offline Member
    Join Date
    Feb 2011
    Posts
    4
    Rep Power
    0

    Smile sorry....

    .if finish my coding can post i here and ask for your help

  10. #10
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default

    Of course! We only ask that you show us what you have before asking us to write it for you. :D

Similar Threads

  1. Need help getting input(first/last name) from user
    By nightrise420 in forum New To Java
    Replies: 11
    Last Post: 09-11-2010, 03:09 AM
  2. User Input
    By brmcdani in forum New To Java
    Replies: 2
    Last Post: 02-05-2010, 01:59 AM
  3. how to get input from User
    By Alvaro in forum New To Java
    Replies: 7
    Last Post: 01-15-2010, 11:02 PM
  4. User input- Pop Up Box
    By dedachi in forum AWT / Swing
    Replies: 3
    Last Post: 03-23-2009, 04:47 AM
  5. cant take input from user
    By new_1 in forum New To Java
    Replies: 6
    Last Post: 12-25-2007, 07:38 AM

Posting Permissions

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