Help please, I need to create a variable to make an accountant, but I need that the whole variable can be called in all the Jframes of my package, I have tried in some ways and I still do not get it
You can declare the variable publicly so that it can be accessible from other classes that are within the same package, for example:
public int num;
Hi, I recommend that you create a Getter and use this to obtain the value, now if you put more in context what you want to do, we can help you more. Greetings