Use static variables. They are class variables.You will always get updated values when they are altered between methods of different classes.