Making variables in a class accessible to all once changed
I have a class that just holds values that are updated as the program receives user input. But I want this classes variables once updated to accessible to all the other classes. I can't for the life of me remember how to do that.
class1 class = new class1();
class.variable1 = "Java";
I want to be able to change the value of class.variable1 here, and have that value remain in variable1 and be accessible to all.
thanks in advance.