i need to access a variable from a class to another class currently running at the same time. my plan is to:
Save the values of the variable to a file and access it from the other class
other options i have
Use a database
use RMI
what other features in java that i can use??? what do you think is my best option???
Note:
the variable must not be static because i need to change it from time to time