Existing variable Double a (read from configuration file)
How to call variable a in the static tool method func1???
In theory, static methods cannot call non-static variables
If this is the case, my method is:
Read the content of the configuration file in other files, and then pass it as a parameter to func1
eg: declare func(Double a)
Call DistanceUtils.func(a)
other