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 -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -