Results 1 to 2 of 2
  1. #1
    susan is offline Member
    Join Date
    Jul 2007
    Posts
    44
    Rep Power
    0

    Default I would then store a string...

    I would like to know how to store a string into a class without using a text file to save it. I would like to store a string, exit a program, and load a string in which I requested. I would then store a string inside another class to hold inputed data.
    Lets say I want to input a name using this code.

    Java Code:
    inputName = JOptionPane.showInputDialog("Enter your name: ");
    I want to store name somewhere and retrieve it when I request it.

    Thanks

  2. #2
    cachi is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default

    You should look up some JNDI tutorials. JNDI is used to store and retrieve objects by other applications or the same application at a different time.

    Greetings.

Similar Threads

  1. Replies: 3
    Last Post: 04-07-2008, 06:02 PM
  2. Store retrieve and delete
    By on7june in forum New To Java
    Replies: 1
    Last Post: 03-08-2008, 05:57 PM
  3. store file
    By kazitula in forum Java Applets
    Replies: 0
    Last Post: 02-17-2008, 09:45 PM
  4. Replies: 2
    Last Post: 12-05-2007, 01:19 PM
  5. how to use btree to store data
    By fred in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 05:52 PM

Posting Permissions

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