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.
inputName = JOptionPane.showInputDialog("Enter your name: ");
I want to store name somewhere and retrieve it when I request it.
Thanks