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