Question about Java (from newbie).
There is a main method, which through the scanner receives 3 variables from the user, fills in some arrays, and does some calculations.
In this method you need to count f (x);
I decided to make another method for counting f (x) - to which we will send X and receive a return - answer after calculations and depending on the answer - further use the main method anyway.
The problem is that in the new method, you need to have access to all the variables and arrays of the main method (actually for the same calculations).
How to make all variables and arrays of the method main accessible to other methods in the class?
Thanks for the answer.