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

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

java - Reaching JTextField in a DocumentListener -

c# - Add Image in a stackpanel based on textbox input -