I want to maintain some global variables that can be changed in Java. And once the state/value of a variable changes, next time I use this variable I should have the new changed state/value.
For example I use a config property and once changed, the new value should be used thereafter.
I am not able to figure out how to achieve this in Java. Any suggestions would be very helpful.
2.1m questions
2.1m answers
60 comments
57.0k users