How do I update an integer in the main method according to the number of times I call a method from another class?
I have a jButton in the jFrame that runs a method(if conditions are met) from another class every time the button is clicked. I want it in a way that the integer is updated every time the button is click AND the particular method from the other class is called.
Thank for the help!