How to update variable and make it persistent in java? -
For example, I have a personal member who has been started for string str = "A". After the program is over, I want to be str "b". Then, the next day when I run the same program, the value of str is "B", not "A".
Thank you.
You have to write your data in a permanent storage location, such as a file on a database or disk.
Comments
Post a Comment